Re: strip white space

From: Date: Wed, 02 Jul 2003 17:31:13 +0000
Subject: Re: strip white space
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153740@lists.php.net to get a copy of this message
Steve Buehler wrote:
Another question is this. The "&" in wsstrip(&$str). Does that mean that it takes the input to the function as Global and changes it Globally? I am assuming that because that is what the whole function seems to do for me.
No, it means that it passes a reference to the variable rather than the value. In other words, any changes made to the variable in the function will change the variable passed in too. See http://us2.php.net/references -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#153740) next »