Re: the most amazing php code i have ever seen so far

From: Date: Thu, 24 Apr 2008 19:22:05 +0000
Subject: Re: the most amazing php code i have ever seen so far
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-273547@lists.php.net to get a copy of this message
paragasu wrote:
i have seen many php code. i learn php on my own, and during early days with php, i download many open source php project and try to learn the coding on my own. i did see many code (ugly, spaghetti code etc). Some even take me few hours to figure out how it works. But one project using php in a very clean way. The codeis look so simple. yet do so much thing. Personally, i vote for www.eyeos.org project for the best php code. Anyone know better?
First thing, after the sweeeet header comment that I saw was this: call_user_func('lib_eyeString_start'); I thought, why wouldn't you just do this: lib_eyeString_start(); Or maybe I'm missing something. call_user_func() only seems to be useful if you have a variable function name that could be different for any call of the call_user_func(): call_user_func($funcNameAssignedEarlier); But still, this would be the same yes? $funcNameAssignedEarlier(); -Shawn

« previous php.general (#273547) next »