Jason Webster wrote:
> 
> Won't this escape the wildcard character, and offer it as a literal?
> 

Nope.  The quote() function only quotes things that may terminate the string
literal, such as ', ", \0, etc. 

You can try it yourself to be sure:
  print $db->quote("%some'stuff%") . "\n";
  // Output: '%some\'stuff%'

Regards,
Bill Karwin
-- 
View this message in context: 
http://www.nabble.com/Using-quote%28%29-method-in-LIKE-statements-tp19113687p19114415.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to