Пишу, по большей части, про историю, свою жизнь и немного про программирование.

Век живи — век учись | PHP5

Господа PHP-шники. Такое вы знали? :)

<SPAN style="COLOR: #000000"><SPAN style="COLOR: #0000bb">&lt;? 

    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 &lt;&lt;&lt;TEXT 
</SPAN><SPAN 
style="COLOR: #0000bb">    </SPAN><SPAN style="COLOR: #007700">{</SPAN><SPAN 
style="COLOR: #0000bb">$s</SPAN><SPAN style="COLOR: #007700">-&gt;</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">?&gt;</SPAN></SPAN></CODE>