note 105008 deleted from internals2.variables.creating by danbrown
| From: | danbrown@php.net | Date: | Fri, 22 Jul 2011 15:46:23 +0000 |
| Subject: | note 105008 deleted from internals2.variables.creating by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181789@lists.php.net to get a copy of this message | ||
Note Submitter: kodEater
----
To create a variable in PHP language is quite simple.
You have to use the symbol "$" preceding the variable name.
Example:
$myVariable
To add some value to the variable you add the symbol "=" to attribute value.
Example:
$myVariable = "someValue"; /* (between quotes if is a string(text)) */
For numbers you can just put the value without quotes. Example:
$myVariable = 30;
Hope this will help!
kodEater