Results for unserialize translation from Hebrew to English

Hebrew

Translate

unserialize

Translate

English

Translate
Translate

Instantly translate texts, documents and voice with Lara

Translate now

Human contributions

From professional translators, enterprises, web pages and freely available translation repositories.

Add a translation

Hebrew

English

Info

Hebrew

דוגמה 2. unserialize() example

English

example 2. unserialize() example

Last Update: 2011-10-24
Usage Frequency: 1
Quality:

Hebrew

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

English

if present, this function can reconstruct any resources that object may have.

Last Update: 2011-10-24
Usage Frequency: 1
Quality:

Hebrew

/ / 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();}}

English

?php / / 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();}}?

Last Update: 2011-10-24
Usage Frequency: 1
Quality:

Warning: Contains invisible HTML formatting

Get a better translation with
9,142,173,151 human contributions

Users are now asking for help:



We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Learn more. OK