In PHP, a variable name must start with a ______ followed by the name of the variable.
- Dollar sign ($)
- Letter (a-z)
- Underscore (_)
- Number (0-9)
In PHP, variable names must start with a dollar sign ($), followed by the name of the variable. The variable name is case-sensitive. Variable names follow certain rules: they must begin with a letter or the underscore character; they can't begin with a number; they can contain alpha-numeric characters and underscores. Learn more: https://www.php.net/manual/en/language.variables.basics.php
Loading...
Related Quiz
- What is the purpose of the array_pop() function in PHP?
- You need to pass data into a block of code in your PHP script, perform some operations on the data, and then return a result. How would you accomplish this by defining and using a function?
- What does the scope of variables mean?
- You can explicitly set the keys in an indexed array in PHP.
- To access data from the $_SERVER superglobal in PHP, you can use $_SERVER['element'] where 'element' is the name of the ______ you wish to access.