+ 4
Why "static $i = sqrt(100)" leads to fatal error ?
4 Réponses
+ 2
Michael thanx
+ 1
"Like any other PHP static variable, static properties may only be initialized using a literal or constant before PHP 5.6; expressions are not allowed. In PHP 5.6 and later, the same rules apply as const expressions.“
(https://www.php.net/manual/en/language.oop5.static.php)
+ 1
AK F Lashari what's it?
0
03022337110