전문 번역가, 번역 회사, 웹 페이지 및 자유롭게 사용할 수 있는 번역 저장소 등을 활용합니다.
if an object was serialized, its methods are not preserved in the returned value.
la valeur convertie est retournée par la fonction, et peut être de type integer, double, string, array ou object.
마지막 업데이트: 2011-10-24
사용 빈도: 1
품질:
this example complements the one described / / with function serialize / function. $conn = odbc_connect ("webdb", "php", "chicken"); $stmt = odbc_prepare ($conn, "select data from sessions where id = ?"); $sqldata = array ($php_auth_user); if (!odbc_execute ($stmt, $sqldata) _bar_ _bar_ !odbc_fetch_into ($stmt, $tmp)) {/ / if the execute or fetch fails, initialize to empty array $session_data = array();} else {/ / we should now have the serialized data in $tmp[0]. $session_data = unserialize ($tmp[0]); if (!is_array ($session_data)) {/ / something went wrong, initialize to empty array $session_data = array();}}
cet exemple complète / / celui fourni avec serialize(). $conn = odbc_connect ("webdb", "php", "chicken"); $stmt = odbc_prepare ($conn, "select data from sessions where id = ?"); $sqldata = array ($php_auth_user); if (!odbc_execute ($stmt, $sqldata) _bar_ _bar_ !odbc_fetch_into ($stmt, $tmp)) {/ / si la préparation ou la lecture échoue, on crée un tableau vide $session_data = array();} else {/ / les données sauvées sont dasn $tmp[0]. $session_data = unserialize ($tmp[0]); if (!is_array ($session_data)) {/ / erreur... initialisation à tableau vide $session_data = array();}}?
마지막 업데이트: 2011-10-24
사용 빈도: 1
품질:
경고: 보이지 않는 HTML 형식이 포함되어 있습니다