note 93899 modified in language.functions by thiago

From: Date: Tue, 06 Oct 2009 14:19:33 +0000
Subject: note 93899 modified in language.functions by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161406@lists.php.net to get a copy of this message
I was a little slow on the uptake for the same question Vameza describes. Here is a contrasting set of code that outlines the difference. <?php function a($n){ b($n); return ($n * $n); } function b(&$n){ $n++; } echo a(5); //Outputs 36 ?> --was-- I was a little slow on the uptake for the same question Vameza describes. Here is a contrasting set of code that outlines the difference. function a($n){ b($n); return ($n * $n); } function b(&$n){ $n++; } echo a(5); //Outputs 36 http://php.net/manual/en/language.functions.php

« previous php.notes (#161406) next »