* Thus wrote Ace:
> Gabriel Birke kontor4.de> writes:
>
> >
> > Hello!
> >
> > The following PHP code:
> > > $a = array("1"=>"First Element", "2"=>"Second Element");
> > $v = &$a['3'];
> > print_r($a);
> > ?>
> > has this result:
> >
> > Array(
> > 1 => First Element,
> > 2 => Second
Gabriel Birke kontor4.de> writes:
>
> Hello!
>
> The following PHP code:
> $a = array("1"=>"First Element", "2"=>"Second Element");
> $v = &$a['3'];
> print_r($a);
> ?>
> has this result:
>
> Array(
> 1 => First Element,
> 2 => Second Element,
> 3 =>
> )
>
> Can anyone give
It is perfectly legal to pass the variable by reference from one function to
another. You'll see that $tmp is 2 at the end of this script. Ofcourse, if
you leave off the reference operators you'll end up with 0.
"Carl Furst" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok let
3 matches
Mail list logo