Changes

Jump to: navigation, search

An Introduction to PHP Variables

320 bytes added, 16:48, 25 May 2007
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 ==

Navigation menu