RE: [PHP-DB] Re: Formatting

From: Date: Mon, 26 Nov 2012 09:57:37 +0000
Subject: RE: [PHP-DB] Re: Formatting
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-48575@lists.php.net to get a copy of this message
> -----Original Message----- > From: Karl DeSaulniers [mailto:karl@designdrumm.com] > Sent: 26 November 2012 08:48 > To: php-db@lists.php.net > Subject: Re: [PHP-DB] Re: Formatting > > Ethan, > is this valid PHP? What is the ampersand for? What is it doing? Just > curious. > > $args[] = &$_POST[$k]; // Note the addition of the ampersand here That's a perfectly valid reference assignment. Please see the Fine Manual at: http://php.net/manual/language.references.whatdo.php Cheers! Mike -- Mike Ford, Electronic Information Developer, Libraries and Learning Innovation, Portland PD507, City Campus, Leeds Metropolitan University, Portland Way, LEEDS,  LS1 3HE,  United Kingdom E: m.ford@leedsmet.ac.uk T: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.db (#48575) next »