[STATIC] Formats any value into a string suitable for SQL statements
(NOTE: Also supports data types returned from the gettype function)
public static SQLValue ( mixed $value, string $datatype = self::SQLVALUE_TEXT ) : string | ||
$value | mixed | Any value of any type to be formatted to SQL |
$datatype | string | Use SQLVALUE constants or the strings: string, text, varchar, char, boolean, bool, Y-N, T-F, bit, date, datetime, time, integer, int, number, double, float |
return | string |