Век живи — век учись | PHP5
Господа PHP-шники. Такое вы знали? :)
<SPAN style="COLOR: #000000"><SPAN style="COLOR: #0000bb"><?
class </SPAN><SPAN style="COLOR: #0000bb">Caller </SPAN><SPAN
style="COLOR: #007700">{
public function </SPAN><SPAN
style="COLOR: #0000bb">__call</SPAN><SPAN style="COLOR: #007700">(</SPAN><SPAN
style="COLOR: #0000bb">$func</SPAN><SPAN style="COLOR: #007700">, </SPAN><SPAN
style="COLOR: #0000bb">$args</SPAN><SPAN style="COLOR: #007700">) {
return </SPAN><SPAN
style="COLOR: #0000bb">call_user_func_array</SPAN><SPAN
style="COLOR: #007700">(</SPAN><SPAN style="COLOR: #0000bb">$func</SPAN><SPAN
style="COLOR: #007700">, </SPAN><SPAN style="COLOR: #0000bb">$args</SPAN><SPAN
style="COLOR: #007700">);
}
}
</SPAN><SPAN style="COLOR: #0000bb">$s </SPAN><SPAN
style="COLOR: #007700">= new </SPAN><SPAN
style="COLOR: #0000bb">Caller</SPAN><SPAN style="COLOR: #007700">();
echo <<<TEXT
</SPAN><SPAN
style="COLOR: #0000bb"> </SPAN><SPAN style="COLOR: #007700">{</SPAN><SPAN
style="COLOR: #0000bb">$s</SPAN><SPAN style="COLOR: #007700">-></SPAN><SPAN
style="COLOR: #0000bb">strrev</SPAN><SPAN style="COLOR: #007700">(</SPAN><SPAN
style="COLOR: #dd0000">'KOT'</SPAN><SPAN style="COLOR: #007700">)}</SPAN><SPAN
style="COLOR: #0000bb">
</SPAN><SPAN
style="COLOR: #007700">TEXT;
</SPAN><SPAN
style="COLOR: #0000bb">?></SPAN></SPAN></CODE>