note 65974 added to function.function-exists

From: Date: Thu, 11 May 2006 07:06:38 +0000
Subject: note 65974 added to function.function-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-111112@lists.php.net to get a copy of this message
<?php /*PHP doesn't Support nested functions. I have tried following in PHP_VERSION - 5.1.2*/ function A(){} function B(){ function C(){ function D(){} } } IsFunctionExist('A'); IsFunctionExist('B'); IsFunctionExist('C'); IsFunctionExist('D'); function IsFunctionExist($funcName){ echo function_exists($funcName)?" $funcName exist <br>":" $funcName doesn't exist <br>"; } ?> /*O U T P U T A exist B exist C doesn't exist D doesn't exist */ ---- Server IP: 66.163.161.117 Probable Submitter: 61.247.235.49 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.function-exists.php Edit -- http://master.php.net/note/edit/65974 Del: integrated -- http://master.php.net/note/delete/65974/integrated Del: useless -- http://master.php.net/note/delete/65974/useless Del: bad code -- http://master.php.net/note/delete/65974/bad+code Del: spam -- http://master.php.net/note/delete/65974/spam Del: non-english -- http://master.php.net/note/delete/65974/non-english Del: in docs -- http://master.php.net/note/delete/65974/in+docs Del: other reasons-- http://master.php.net/note/delete/65974 Reject -- http://master.php.net/note/reject/65974 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111112) next »