PHP Variables
Like in any other programming language, in PHP a variable is also used to dedicate some memory space to store some data.
Things to Remember...
- The variable name must be a alpha-nemeric or may include underscores.
- After $ sign the variable name should have letter or underscore i.e a variable name must not start with a numeric value.
- Spaces are not allowed.
This is how easily we can declare and initialize a variable without even setting it's data type.
Some examples...
0 comments:
Subscribe to:
Post Comments (Atom)
Post a Comment