note 93719 deleted from language.types.string by thiago
| From: | thiago@php.net | Date: | Thu, 24 Sep 2009 11:14:29 +0000 |
| Subject: | note 93719 deleted from language.types.string by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161011@lists.php.net to get a copy of this message | ||
Note Submitter: MTM
----
<?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