note 78949 added to function.call-user-func

From: Date: Sun, 04 Nov 2007 06:26:03 +0000
Subject: note 78949 added to function.call-user-func
Groups: php.notes 
Request: Send a blank email to php-notes+get-131979@lists.php.net to get a copy of this message
Note that the parser can interpret variables in function syntax, which means you can pass all variables normally (eg: reference). <?php function myfunction($string, &$int){ echo $string."\n"; $int++; } $function_name = "myfunction"; $x = 1336; $function_name("Hello World", $x); echo $x; ?> --- Hello World 1337 ---- Server IP: 202.89.58.1 Probable Submitter: 203.97.238.106 ---- Manual Page -- http://www.php.net/manual/en/function.call-user-func.php Edit -- https://master.php.net/note/edit/78949 Del: integrated -- https://master.php.net/note/delete/78949/integrated Del: useless -- https://master.php.net/note/delete/78949/useless Del: bad code -- https://master.php.net/note/delete/78949/bad+code Del: spam -- https://master.php.net/note/delete/78949/spam Del: non-english -- https://master.php.net/note/delete/78949/non-english Del: in docs -- https://master.php.net/note/delete/78949/in+docs Del: other reasons-- https://master.php.net/note/delete/78949 Reject -- https://master.php.net/note/reject/78949 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131979) next »