Re: PEAR::DB - different syntax for same thing?
| From: | Mika Tuupola | Date: | Thu, 26 Feb 2004 12:46:21 +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-10958@lists.php.net to get a copy of this message | ||
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.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/