34,333
edits
Changes
→Assigning a Value to a PHP Variable
</pre>
The above assigment creates a variable named ''numberOfShapes'' and assigns it a numeric value of 6.Once a varaible has been created the value assigned to that variable can be changed at any time using the same assignment operator approach: <pre><?php $numberOfShapes = 6; // Set initial values$myShape = "Circle"; $numberOfShapes = 7; // Change the initial values to new values$myShape = "Square"; ?></pre>
== Accessing PHP Variable Values ==