Difference between revisions of "PHP assignment operator"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) |
(No difference)
|
Revision as of 19:47, 20 September 2016
In PHP, the assignment operator is an equal sign (=).
The assignment operator assigns a value to a variable.
Example
<?php $msg = "Hello World"; echo $msg; ?>
The above example assigns the value "Hello World" to a variable named $msg.
The echo keyword then displays "Hello World" for the user.
See also
External links
- Assignment Operators @ php.net