Re: PDO questions

From: Date: Thu, 22 Sep 2005 11:51:00 +0000
Subject: Re: PDO questions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-19118@lists.php.net to get a copy of this message
Lukas Smith wrote:
3) Wouldn't it be nice if you could do a $stmt->execute("foo", "bar"); (numeric parameters) instead of $stmt->execute(array("foo", "bar")); ?
I think this would severely hurt the extensibility of the API not only for PDO itself, but also for people who want to transparently extend the API.
Also note your suggestion would only work for ? placeholders and not for :foo style placeholders (which I would generally recommend for readability reasons). regards, Lukas

« previous php.internals (#19118) next »