PHP Transfer Values
PHP is a scripting language used on millions of websites to create dynamic Web pages on the fly and give users a more interactive experience. With PHP, it is possible to transfer the value of one variable to another with a single command assignment. Once a variable has been assigned, it can be redistributed to another variable by using the assignment operator. You will need an active PHP document to transfer a value between two variables but no special software is required to perform the task.
Instructions
-
-
1
Open the Windows "Start" menu and type "notepad" into the search box. Click on "Notepad" in the search results to launch the text editor.
-
2
Click "File," "Open" and then browse to your PHP document. Double-click to open the document.
-
-
3
Define your initial variable on its own line. In the following code example, you would replace "green" with your own value.
$first_variable = 'green';
-
4
Define a second variable on another line that transfers the value of the first variable to the second one. For example:
$second_variable = $first_variable;
-
1