pg_convert(PHP 4 >= 4.3.0, PHP 5) pg_convert — Convert associative array values into suitable for SQL statement Описание
array pg_convert
( resource $connection
, string $table_name
, array $assoc_array
[, int $options
] )
pg_convert() checks and converts the values in assoc_array into suitable values for use in a SQL statement. Precondition for pg_convert() is the existence of a table table_name which has at least as many columns as assoc_array has elements. The fieldnames in table_name must match the indices in assoc_array and the corresponding datatypes must be compatible. Returns an array with the converted values on success, FALSE otherwise.
Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск. Список параметров
Возвращаемые значенияAn array of converted values, or FALSE on error. Примеры
Пример #1 pg_convert() example
<?php |
|
|
| © 2009 Тест скорости интернета | Boont.Ru |