note 49794 added to language.functions

From: Date: Tue, 08 Feb 2005 21:36:17 +0000
Subject: note 49794 added to language.functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-84688@lists.php.net to get a copy of this message
DEFINING A FUNCTION WITH ANOTHER FUNCTION You can define a function with another function to embelish for consistency and expediency - just be sure that the called function is on the same page (and perhaps prior) and that all values in the called function are also included in the defined function. FUNCTION pass2($param1,$param2,$param3,$etc) { $val= pass1($param1,$param2);// use this format ... do some things return $newval; } ---- Manual Page -- http://www.php.net/manual/en/language.functions.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49794 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49794&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49794&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49794&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49794&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49794&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49794&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84688) next »