You are here: user defined functions with optional arguments? « PHP Programming Language « IT news, forums, messages
user defined functions with optional arguments?

Posted by Exyle on 08/18/05 00:27

I have a function that has two arguents, however depending on the value
of the first argument, the second one may or may not be needed. If I
only input the first argument when calling the function, PHP returns a
warning. many built in php functions have optional arguments, is there a
way to make arguments in user defined functions optional as well?

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

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