note 11565 added to Function arguments

From: Date: Sun, 25 Feb 2001 18:48:33 +0000
Subject: note 11565 added to Function arguments
Groups: php.notes 
Request: Send a blank email to php-notes+get-11585@lists.php.net to get a copy of this message
here is the code to pass a user defined function as an argument. Just like in the usort method. 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"); } http://www.php.net/manual/en/functions.arguments.php

« previous php.notes (#11585) next »