|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-25 22:06 UTC] simon at comsys dot ntu-kpi dot kiev dot ua
#!php -q
<?
$a = "abc";
function foo()
{
global $a;
static $b = $a;
static $arr = array($a);
}
?>
I can't ini static variable by another variable or
function. Even more PHP give error while parsing this
code.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 16:00:02 2026 UTC |
#!php -q <? $a = "abc"; function foo() { global $a; static $b = $a; static $arr = array($a); } ?> I can't init static variable by another variable or function. Even more PHP give error while parsing this code.