Related Articles
PHP – Test Variable Against an Array with in_array()
The in_array() function allows you to check if a value is stored with an Array. This can be used for things such as creating an array of which states a company ships products to. in_array() […]
PHP – elseif Statements
elseif statements allow you to check to see if any of a number of conditions are true before failing out to the else in an if statement.
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; […]
Be the first to comment