PHP variable.
Variable in PHP is used to store the values to be numbers atu text.
If the variable in PHP variable is declared it can be used over and over again.
And actually in the PHP variable does not need to be declared.
Writing in PHP variables are always preceded by symbol $.
Example.
$ a = 'name':
echo $ a; - hence the note names on your browser.
How to make PHP variable distinguished.
Variable name must be preceded with the letter not under scor "_".
Variable should only be alpha-numeric and under scor (AZ, az, 0-9, "_").
Should not spaces, if your variable names more than one word at the recommended for under score for its separator ($ orang_keren) /
No comments:
Post a Comment