Re: PEAR::DB - different syntax for same thing?
| From: | Lorenzo Alberton | Date: | Thu, 26 Feb 2004 13:07:29 +0000 |
| Subject: | Re: PEAR::DB - different syntax for same thing? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10959@lists.php.net to get a copy of this message | ||
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