You are here: Re: Passing arguments to callbacks « PHP Programming Language « IT news, forums, messages
Re: Passing arguments to callbacks

Posted by Mary Pegg on 04/21/06 13:04

F Laupretre wrote:

<snip>

Thanks for the feedback.

> and use func_get_args() to retrieve a variable number of arguments. Your

Yes, I thought about this but felt that if you are going to do this:

> $args=get_func_args();
> $args=(count($args)>2) ? array_slice($args,2) : array();
> return call_user_func_array($callback,$args);

you might as well just pass an array in anyway. Not sure now.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация