Reply to Re: arguments from function

Your name:

Reply:


Posted by Jerry Stuckle on 12/16/50 11:58

iulian.ilea wrote:
>>*** iulian.ilea escribió/wrote (15 Sep 2006 15:36:17 -0700):
>>
>>>In JavaScript, if I have func(var1,var2,var3) it is possible to call
>>>func("valueone") or func("valueone","valuetwo"). Ofcourse that value1
>>>and valuetwo ar assigne to var1 and var2. If a third parameter is sent
>>>this is assigned to var3.
>>
>>Right, but you cannot assign var1 and var3 but not var2, as you suggest:
>>
>>function me($param1, $param2=null, $param3,
>>$param5=null, $param6=null)
>>
>>
>>
>>--
>>-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
>>++ Mi sitio sobre programación web: http://bits.demogracia.com
>>+- Mi web de humor con rayos UVA: http://www.demogracia.com
>>--
>
>
> No, but I can do this: me($p1, null, $p3).
>
> Alvaro G. Vicario wrote:
>

(Top posting fixed)

Yes, but that passes null as the second argument, which is different
from taking the default value for the parameter.

P.S. Please don't top post.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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