|
cubrid_get(PECL CUBRID >= 8.3.0) cubrid_get — Get a column using OID ОписаниеThe cubrid_get() function is used to get the attribute of the instance of the given oid. You can get single attribute by using string data type for the attr argument, or many attributes by using array data type for the attr argument. Список параметров
Возвращаемые значенияContent of the requested attribute, when process is successful; When attr is set with string data type, the result is returned as a string; when attr is set with array data type (0-based numerical array), then the result is returned in associative array. When attr is omitted, then all attributes are received in array form. FALSE when process is unsuccessful or result is NULL (If error occurs to distinguish empty string from NULL, then it prints the warning message. You can check the error by using cubrid_error_code()) ПримерыПример #1 cubrid_get() example
<?php Результат выполнения данного примера: string(9) "{1, 2, 3}" array(4) { ["a"]=> string(1) "1" ["b"]=> array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" } ["c"]=> array(4) { [0]=> string(2) "11" [1]=> string(2) "22" [2]=> string(2) "33" [3]=> string(3) "333" } ["d"]=> string(10) "a " } |
|