Re: PEAR::DB - different syntax for same thing?

From: Date: Thu, 26 Feb 2004 14:52:46 +0000
Subject: Re: PEAR::DB - different syntax for same thing?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10964@lists.php.net to get a copy of this message
Lorenzo Alberton wrote:
On Thu, 26 Feb 2004 14:46:21 +0200 (EET), Mika Tuupola wrote:
On Thu, 26 Feb 2004, Tommy Ipsen wrote:
It's the "DB/{$type}.php" vs. "DB_${type}" I'm wondering about... - I know about variable variables but is that just what's going on?
If $type == 'mysql' then DB/{$type}.php == DB/mysql.php which is the filename to include and DB_${type} == DB_mysql which is the classname of the file included.
I think Tommy was concerned with "${type}" vs. "{$type}" and yes, it looks like it's just a different syntax for the same things. Best regards, Lorenzo
Thanks Lorenzo - exactly what I meant :-) Cheers, Tommy

« previous php.pear.general (#10964) next »