> 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
- [PHP] Can you do this Boget, Chris
- Re: [PHP] Can you do this Christian Reiniger
- Boget, Chris

