note 93899 added to language.functions

From: Date: Mon, 05 Oct 2009 23:17:56 +0000
Subject: note 93899 added to language.functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-161384@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. function a($n){ b($n); return ($n * $n); } function b(&$n){ $n++; } echo a(5); //Outputs 36 ---- Server IP: 208.69.120.35 Probable Submitter: 76.105.243.155 ---- Manual Page -- http://www.php.net/manual/en/language.functions.php Edit -- https://master.php.net/note/edit/93899 Del: integrated -- https://master.php.net/note/delete/93899/integrated Del: useless -- https://master.php.net/note/delete/93899/useless Del: bad code -- https://master.php.net/note/delete/93899/bad+code Del: spam -- https://master.php.net/note/delete/93899/spam Del: non-english -- https://master.php.net/note/delete/93899/non-english Del: in docs -- https://master.php.net/note/delete/93899/in+docs Del: other reasons-- https://master.php.net/note/delete/93899 Reject -- https://master.php.net/note/reject/93899 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161384) next »