PHP – Access Named Keys in Arrays – Foreach() Eli the Computer Guy PHP Programming (NEW) The foreach() function can turn Named Keys into variables just like it does array values. <?php $reportcard = array('Mary' => 'B+', 'Tim' => 'A', 'Sue' => 'C'); foreach($reportcard as $names => $grade){ print "$names: $grade </br>"; } ?> PHP
PHP Programming (NEW) PHP – Logical Operators Eli the Computer Guy PHP Programming (NEW) Logical Operators allow you to use AND or OR in comparisons for Loops and If Statements.
PHP Programming (NEW) PHP – elseif Statements Eli the Computer Guy PHP Programming (NEW) 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.
*NEW PHP – isset() Function to Verify if a Variable Has a Value Eli the Computer Guy *NEW, PHP Programming (NEW) The isset() function in PHP checks to see if the value of a variable has been set. this can be useful in applications that allow users to login, or make sure that variables are actually […]
Be the first to comment