note 93719 added to language.types.string
| From: | MTM at osu1 dot php dot net | Date: | Thu, 24 Sep 2009 09:59:09 +0000 |
| Subject: | note 93719 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161010@lists.php.net to get a copy of this message | ||
<?php
class cla {
static $str = 'var';
}
$var="xxx";
$clav = new cla();
$xxx = "was'up";
echo "{${cla::$str}}"; //work xxx
echo "{$clav::$str}<br/>"; //it work but my ide show syntax error
echo "{${$clav::$str}}<br/>"; //it work but my ide show syntax error
echo "{clav::$str}<br/>"; // echo: Notice: Undefined variable: str in
C:\Wamp\www\Test\new_file.php on line 12 {clav::} .... no syntax error in ide
?>
pls someone help me whay the is syntax error in ide ans nothing in brwser thanx
----
Server IP: 69.147.83.197
Probable Submitter: 41.200.5.147
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/93719
Del: integrated -- https://master.php.net/note/delete/93719/integrated
Del: useless -- https://master.php.net/note/delete/93719/useless
Del: bad code -- https://master.php.net/note/delete/93719/bad+code
Del: spam -- https://master.php.net/note/delete/93719/spam
Del: non-english -- https://master.php.net/note/delete/93719/non-english
Del: in docs -- https://master.php.net/note/delete/93719/in+docs
Del: other reasons-- https://master.php.net/note/delete/93719
Reject -- https://master.php.net/note/reject/93719
Search -- https://master.php.net/manage/user-notes.php