Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

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

AW: elseif of "else if" (PHP)

  Alt 28. Jun 2010, 13: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.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat