Re: newbie question

From: Date: Mon, 19 Mar 2007 20:20:45 +0000
Subject: Re: newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-250838@lists.php.net to get a copy of this message
On Mon, 2007-03-19 at 20:10 +0000, bob pilly wrote: > Hi all > > Can anyone tell me what '&' means before a var? > > e.g function(&$var) It means the variable is passed into the function as a reference. Changes to the value of the variable will be reflected outside of the function in the variable passed to the function. Oh, almost forgot... RTFM :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#250838) next »