PHP – Code Reuse – include Eli the Computer Guy PHP Programming (NEW) Using includes you can reuse the same code in multiple scripts. //include.php <?php $time = time(); include 'included.php'; print $message; print "</br>"; print $time; ?> //included.php <?php $message = "HELLO WORLD FROM AN INCLUDE"; ?> PHP
PHP Programming (NEW) PHP – switch Statements Eli the Computer Guy PHP Programming (NEW) switch Statements allow you to allow events to happen based on specific values for variables.
PHP Programming (OLD) Comments and INCLUDE in PHP Programming Eli the Computer Guy PHP Programming (OLD)
PHP Programming (NEW) PHP – While Loops Eli the Computer Guy PHP Programming (NEW) While loops allow you to repeat code while a condition remains true.
Be the first to comment