I always find it hard to find the most basic information about the most basic concept in php. I literally waste 2 hours a day browsing through books or forum to get the simplest question answered.
Let me give you an example of what I was asking myself a few minutes ago:
Code: Select all
$db = new PDO('mysql:host=' . $config['host'] . ';dbname=' . $config['dbname'], $config['username'], $config['password']);When I look at the php manual this is what I see:
my number one question: Let's say I wanted to learn what the new PDO function does and how to properly format it I would first go the http://ca1.php.net/manual/en/class.pdo.php to read about it. Unfortunately there is no mention anywhere to a function called PDO() the closest thing I can find is PDO::__construct() ( string $dsn [, string $username [, string $password [, array $driver_options ]]] ).
what am I missing here? How can I learn a function when I can't find it in the manual? How would I be able to make an association from PDO() and PDO::__construct() or am I not understand how the information that is provided to me in the book? I have tried to look for how the book is organized section and but can't find that either.