Control Structures in PHP

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 20:44, 23 May 2007 by Admin (Talk | contribs)

Jump to: navigation, search

When compared to the C programming language, PHP is "lazy" as it will terminate processing of the if routing as soon as it determines the outcome.

 if ( $comp == "open" ) {
 if (!empty($cfgRelation['relation'])) {
 if ($have_rel) {
 if (typeof(window.print) != 'undefined') {
 if (!empty($tbl_group) && !$cfg['ShowTooltipAliasTB']) {
 if (empty($var)) {
 if (isset($var)) {