PHP Programming (NEW)

PHP – Creating Arrays

Arrays allow for a variable to have multiple values.  This gives you the ability to create lists of names, and be able to sort them easily.  Also it allows you to have values from a […]

PHP Programming (NEW)

PHP – if Statements

If Statements allow you to trigger code if specific conditions are met.   <?php $age = 20; print “Your Age is $age”; print “<br>”; if ($age < 18) { print “you too YOUNG”; } ?>

PHP Programming (NEW)

PHP – Comments

Commenting code allows you to add notations to you script to explain why it was written how it was. You can also use commenting to keep specific code from running during troubleshooting.   <?php /* […]

PHP Programming (NEW)

PHP – Setting Variables

Variables in PHP can be set without needing to be declared.   <?php $string = “Hello World”; $int = 1; $float = 2.2; print “<h1>String</h1>”; print $string; print “<h1>Int</h1>”; print $int; print “<h1>Float</h1>”; print $float; […]