note 13821 added to keyword.paamayim_nekudotayim.php

From: Date: Wed, 04 Jul 2001 13:04:57 +0000
Subject: note 13821 added to keyword.paamayim_nekudotayim.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14974@lists.php.net to get a copy of this message
Correction, my previous note should read: Variable Class Names (PHP 4.05): class A { function example() { return 'example!'; } } $class = 'A'; $instance = 'a'; $a = new A; // While you can do this in PHP4: print ${$instance}->example(); // The parser doesn't seem to like this: print ${'class'}::example(); // A workaround is to use eval() print eval("return $class::example();"); http://www.php.net/manual/en/keyword.paamayim_nekudotayim.php

« previous php.notes (#14974) next »