variable functions: empty/isset/unset invalid?

From: Date: Mon, 07 May 2001 17:03:41 +0000
Subject: variable functions: empty/isset/unset invalid?
Groups: php.general 
Request: Send a blank email to php-general+get-51774@lists.php.net to get a copy of this message
This does not work as expected (as I expect it at least) and gives the following error. This seems to result with use of empty(), isset(), and unset(), perhaps others : Call to undefined function: empty() When using : $foo = 'empty'; if ($foo($var)) print 'worked.'; Of course the following works as expected. if (empty($var)) print 'worked.'; And with other functions : $foo = 'somefunction'; if ($foo($var)) print 'worked.'; Why won't variable functions work with empty/isset/unset this way? And why the 'undefined function' fatal error? regards, philip

« previous php.general (#51774) next »