UNB Components Code Reference

UnbDatabase::EscapeLikeWildcards method

Escape a value to use the wildcards * and ? instead of SQL's % and _.

public static function UnbDatabase::EscapeLikeWildcards ($s);

Parameters

s

Return value

(string) the escaped value

Remarks

This value must be used in a LIKE ? ESCAPE ? context, with \ as the escape value.

$s = (string) The value to escape

Member of class: UnbDatabase

Implementation file: database.class.php, line 1023

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.