What are the characteristics of PHP variables?
Submitted by: Administrator☛ Here are the most important things to know about variables in PHP.
☛ All variables in PHP are denoted with a leading dollar sign ($).
☛ The value of a variable is the value of its most recent assignment.
☛ Variables are assigned with the = operator, with the variable on the left-hand side and the expression to be evaluated on the right.
☛ Variables can, but do not need, to be declared before assignment.
☛ Variables in PHP do not have intrinsic types - a variable does not know in advance whether it will be used to store a number or a string of characters.
☛ Variables used before they are assigned have default values.
☛ PHP does a good job of automatically converting types from one to another when necessary.
☛ PHP variables are Perl-like.
Submitted by:
☛ All variables in PHP are denoted with a leading dollar sign ($).
☛ The value of a variable is the value of its most recent assignment.
☛ Variables are assigned with the = operator, with the variable on the left-hand side and the expression to be evaluated on the right.
☛ Variables can, but do not need, to be declared before assignment.
☛ Variables in PHP do not have intrinsic types - a variable does not know in advance whether it will be used to store a number or a string of characters.
☛ Variables used before they are assigned have default values.
☛ PHP does a good job of automatically converting types from one to another when necessary.
☛ PHP variables are Perl-like.
Submitted by:
Read Online Sr. PHP Programmer Job Interview Questions And Answers
Top Sr. PHP Programmer Questions
☺ | What are the 3 scope levels available in PHP and how would you define them? |
☺ | What is the purpose of $_PHP_SELF variable in PHP? |
☺ | What is the purpse $_PHP_SELF variable? |
☺ | Can the value of a constant change during the script's execution? |
☺ | What is the purpose of _CLASS_ constant? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |