If you are using PHP 5.0.0 or greater, use the one class, other wise,
use the other.
The 'eval' BS is to avoid the PHP compiler complaining that you have
the same class defined twice.
Frankly, it's pretty ugly, if you ask me...
On Fri, March 9, 2007 7:08 pm, php trainer wrote:
Could someone
In PHP 5 some things changed, and that's why they first check if PHP version
is 5 or greater, if so, it constructs this class and function in PHP5 style,
else it uses older syntax.
You might want to take a look at this manual page:
http://www.php.net/manual/en/migration5.php
Tijnema
On
Could someone explain what this does and why it's beneficial?
Thanks,
Ed
--
if (version_compare(phpversion(), '5.0.0', 'ge')) {
class DB_DataContainer_Overload {
function __call($method,$args) {
$retval = null;
3 matches
Mail list logo