note 126065 deleted from functions.arguments by cmb

From: Date: Mon, 10 May 2021 08:21:46 +0000
Subject: note 126065 deleted from functions.arguments by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216364@lists.php.net to get a copy of this message
Note Submitter: anisgazig at gmail dot com ---- VALUE PASSED DIRECTLY NOT ARGUMENT SO UNDEFINE VARIABLE WILL BE SHOWN. SO PASSING A VALUE DIRECTLY TO A FUNCTION PLEASE GLOBAL KEYWORD MUST BE USE BEFORE VARIABLE. function myfunc22(){ global $arr; return $arr; } $arr = [10,20]; echo "<pre>"; print_r(myfunc22()); echo "</pre>";

« previous php.notes (#216364) next »