My question is, I was just wondering how you declare a variable then call it wherever you want on your page.
If this is PHP 101, feel free to point me in a good direction where to also learn the basics of stuff like this
Thank you!!
Moderator: General Moderators
Code: Select all
<?php
// declare the variable
$variable = 10;
// echo to the browser, will print 10
echo $variable;
?>