> 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
> mo
On Wednesday 31 January 2001 16:03, Boget, Chris wrote:
> Now, say I have a function where one of the arguments
> is passed by reference and is modified within the function.
> I can call this function on one line
>
> myFunc( &$modifiedVariable );
>
> and print out the value (if any) of $modifiedV
2 matches
Mail list logo