검색어: unserialize (히브리어 - 프랑스어)

인적 기여

전문 번역가, 번역 회사, 웹 페이지 및 자유롭게 사용할 수 있는 번역 저장소 등을 활용합니다.

번역 추가

히브리어

프랑스어

정보

히브리어

ולהיפך, unserialize() בודק נוכחות של פונקציה עם מילת הקסם __wakeup. אם המילה נוכחת, פונקציה זו יכולה לבנות מחדש מקור כלשהו שיכול להיות לאובייקט.

프랑스어

si elle existe, cette fonction reconstruit toutes les ressources d 'un objet.

마지막 업데이트: 2011-10-24
사용 빈도: 1
품질:

히브리어

/ / here, we use unserialize() to load session data to the / / $session_data array from the string selected from a database. / / this example complements the one described with 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)) {/ / 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 형식이 포함되어 있습니다

인적 기여로
9,144,510,152 더 나은 번역을 얻을 수 있습니다

사용자가 도움을 필요로 합니다:



당사는 사용자 경험을 향상시키기 위해 쿠키를 사용합니다. 귀하께서 본 사이트를 계속 방문하시는 것은 당사의 쿠키 사용에 동의하시는 것으로 간주됩니다. 자세히 보기. 확인