Greg Beaver wrote:
How about:
echo Myclass::$myvar;
?>
The only problem is if you want to be able to generically access a
static variable from any class that has it, like $Myclass::$myvar.
Greg
Hi Greg,
Yup, Exactly
That is the problem we are attempting to deal with :)
(hence the name of this th
Jake Press wrote:
Simas Toleikis wrote:
Jake Press wrote:
Hi Francisco,
Your not alone, a number of other users have enountered this bug.
string get_class ( object obj )
Its not a bug...
You are getting class name as a string for output purposes etc..
Doing something like "TestClass"::some_static
Simas Toleikis wrote:
Jake Press wrote:
Hi Francisco,
Your not alone, a number of other users have enountered this bug.
string get_class ( object obj )
Its not a bug...
You are getting class name as a string for output purposes etc..
Doing something like "TestClass"::some_static is ofcourse illega
Jake Press wrote:
Hi Francisco,
Your not alone, a number of other users have enountered this bug.
string get_class ( object obj )
Its not a bug...
You are getting class name as a string for output purposes etc..
Doing something like "TestClass"::some_static is ofcourse illegal wih
strings.
--
PHP
Hi Francisco,
Your not alone, a number of other users have enountered this bug.
:(
I have submitted a bug report, here: http://bugs.php.net/bug.php?id=30716
It would be appreciated if you show your support for this bug by
commenting/voting etc :)
I also have a `thread` on the php.generals mailing
I've code like follows:
class TestClass {
public static $Data = 'This is the data';
}
$Obj = new TestClass ();
$ClassName = get_class ($Obj);
echo $ClassName::$Data;
?>
It gives me an error like:
Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM ...
I've found googling that it means t
6 matches
Mail list logo