Ich merke, die Vielfallt bleibt aus, da ich im Grunde nur unterwegs Musik höre.
09.03.2010, 19:27 Uhr
01.03.2010, 21:31 Uhr
24.02.2010, 14:16 Uhr
24.02.2010, 8:30 Uhr
Eine relativ praktische Variante zum Prüfen, ob eine Funktion existiert habe ich heute PHP Hates Me entdeckt. Die eingebaute Funktion function_exists() kennt der ein oder andere evtl.
class ifExists { public static function __callStatic( $functionName, $args ) { if ( function_exists( $functionName ) ) { call_user_func_array( $functionName, $args ); } } }
Das Schöne an dieser Variante ist, dass man wesentlich mehr Kontrolle hat.
16.02.2010, 9:42 Uhr