note 11565 deleted from functions.arguments by cmb

From: Date: Sun, 10 Nov 2019 13:18:40 +0000
Subject: note 11565 deleted from functions.arguments by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213024@lists.php.net to get a copy of this message
Note Submitter: artiebob at go dot com ---- here is the code to pass a user defined function as an argument. Just like in the usort method. <?php func2("func1"); function func1 ($arg){ print ("Hello $arg"); } function func2 ($arg1){ $arg1("World"); //Does the same thing as the next line call_user_func ($arg1, "World"); } ?>

« previous php.notes (#213024) next »