RE: Re: Formatting

"Ford, Mike" <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <3158105795AAC1408619EC8BA03384A92247476D@EXC-MBX01.leedsmet.ac.uk>
> -----Original Message-----
> From: Karl DeSaulniers [mailto:[email protected]]
> Sent: 26 November 2012 08:48
> To: [email protected]
> 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: [email protected]     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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.