|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-18 08:20 UTC] alex at netflex dot nl
[2005-05-02 11:33 UTC] andrey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 22:00:01 2025 UTC |
Description: ------------ It isn't posible to make a call to a static function in a class if you dont no the name of the class while you making the script: class gfx_tagHandler_img { public static function isSupported() { return true;} } $test = "gfx_tagHandler_img"; echo {$test}::isSupported(); I was expecting that: echo {$test}::isSupported(); was translated to: echo gfx_tagHandler_img::isSupported(); but is wasn't can this be an feature for PHP? tnx.