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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux