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 1185

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.