Re: newbie question

From: Date: Wed, 21 Mar 2007 13:08:58 +0000
Subject: Re: newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251051@lists.php.net to get a copy of this message
Means you're passing the variable as reference. This means that any change in the variable inside your function will affect the variable outside your function, in other terms: if you have function myfunc(&$var){ $var = 5; } $a = 6; myfunc($a); will result in having $a=5 after the function all. -- itoctopus - http://www.itoctopus.com "bob pilly" <bobpilly@yahoo.co.uk> wrote in message news:748909.45030.qm@web26211.mail.ukl.yahoo.com... > Hi all > > Can anyone tell me what '&' means before a var? > > e.g function(&$var) > > Thanks for any help in advance > > > > > > ___________________________________________________________ > What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. > http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk

« previous php.general (#251051) next »