Re: PEAR::DB - different syntax for same thing?
| From: | Tommy Ipsen | 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:Thanks Lorenzo - exactly what I meant :-) Cheers, TommyOn Thu, 26 Feb 2004, Tommy Ipsen wrote: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, LorenzoIt'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.