+1 vote
in PHP by
Variable name in PHP starts with -

a) ! (Exclamation)

b) $ (Dollar)

c) & (Ampersand)

d) # (Hash)

1 Answer

0 votes
by
b) $ (Dollar)

Description:

In PHP, a variable is declared using a $ (Dollar) sign followed by the variable name.

As PHP is a loosely typed language, so we do not need to declare the data types of the variables. It automatically analyzes the values and makes conversions to its correct datatype. Variables in PHP are case-sensitive, as an instance the variables $name and $NAME both are treated as different variables.

Related questions

+1 vote
asked May 13, 2022 in PHP by john ganales
0 votes
asked Jun 4, 2020 in PHP by Robindeniel
...