Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu
Online

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.314 Beiträge
 
Delphi 12 Athens
 
#17

AW: elseif of "else if" (PHP)

  Alt 28. Jun 2010, 14:02
Code:
for ($i=13; $i<=45; $i+=($i==21)?33-$i:4) print "$i ";
aus meinem echten Einsatz:
Code:
function PHP_Include($FileName, $AddScriptDir = true) {
  global $Config;
  if ($AddScriptDir) $FileName = (@$Config['Scripts'] ? $Config['Scripts']
    : ($Config['RootPath'] ? $Config['RootPath'] . 'Scripts/' : dirname(__FILE__) . '/')) . $FileName;
  require_once(preg_replace('#\.php$#i', $Config['Ext'] ? $Config['Ext'] : ((($X = dirname(__FILE__)
    . '/Functions.*') && ($Y = glob($X))) ? substr($Y[0], strlen($X) - 2) : '.php'), $FileName));
}
Mit Code-Highlighting sieht es noch halbwegs übersichtlich aus.

Zitat:
einfach deshalb, weil ich es bisher immer so gesehen habe, und dachte, das wäre die einzige valide Syntax.
Woher soll man es da auch anders wissen.
Ein Therapeut entspricht 1024 Gigapeut.
  Mit Zitat antworten Zitat