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.