RE: [PHP] Can you do this

From: Date: Wed, 31 Jan 2001 16:17:11 +0000
Subject: RE: [PHP] Can you do this
Groups: php.general 
Request: Send a blank email to php-general+get-37498@lists.php.net to get a copy of this message
> What about using normal pass-by-value and returning the result? > function MyFunc ($SomeVal) { > $SomeVal += 42; > return $SomeVal; > } > echo MyFunc ($StrangeVal); I'm already using the return value for something else. > Anyway - functions that get their parameters by reference and > modify them can cause much trouble, so better be careful with > that. Well, the only thing that I'm using that argument for is to return an error message, if any. Chris

« previous php.general (#37498) next »