Intro to PHP
<?php echo “Hello World!”; ?>
That’s how it starts.
The basic syntax for calling PHP. Today I learned how to call PHP as well as how to declare and use variables: $Variable (case sensitive)
<?php
$var1 = 3;
$var2 = 2;
echo $var1+var2;
?>
That code spits out the number 5 on a webpage (riveting, I know).
Soon, I’ll move on to PHP code that does something a little more meaningful.
-
loganabbott liked this
-
nerdybiker liked this
-
30daysatatime posted this