get*Value() usability question

From: Date: Tue, 10 Dec 2002 10:24:15 +0000
Subject: get*Value() usability question
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11492@lists.php.net to get a copy of this message
Hi, I am coding on an application atm and I see myself frequently doing IN statements with data arrays that I gathered in a session. So you could do something like this: $query = "SELECT * FROM foo_table WHERE foo_field IN".implode(",", $bar_array).")"; Now this doesn’t work if I want to use MDB's Datatype conversion methods like getTextValue() etc. array_walk comes to mind as a possible solution, but not a very nice one as I don’t know how to handle the fact that these are methods of an object. 1) Does someone have a good idea how to do this? 2) The current get*Value() methods don’t allow you to pass an array to them. Would this be a worthwhile addition? Should the current method work on normal strings and arrays (adding an if statement) or should second class of method be introduced (bloating the API even further). Regards, Lukas Smith smith@dybnet.de _______________________________ DybNet Internet Solutions GbR Reuchlinstr. 10-11 Gebäude 4 1.OG Raum 6 (4.1.6) 10553 Berlin Germany Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de info@dybnet.de

« previous php.pear.dev (#11492) next »