You are here: Unknown number of incoming parameters « All PHP « IT news, forums, messages
Unknown number of incoming parameters

Posted by Luthor on 08/01/05 04:28

say I have a function foo() and the number of incoming parameters could
conceivably be random.

For example, foo() could be called w/ 0 params, and sometimes it could be
called w/ 9 parameters. I know C does this, but is there a way to trap this
w/o using foo(array( param1=>x....})

in C, the function declaration is something to the effect of foo(...)

Thanks

 

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

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