From professional translators, enterprises, web pages and freely available translation repositories.
serialize() returns a string containing a byte-stream representation of value that can be stored anywhere.
serialize() gibt eine zeichenkette (string) zurück, die eine byte-stream entsprechende wiedergabe von value enthält und beliebig abgespeichert werden kann.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
all the functions that serialize variables use the first element of an array to determine whether the array is to be serialized into an array or structure. if the first element has string key, then it is serialized into a structure, otherwise, into an array.
dieses beispiel erzeugt:
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
// $session_data contains a multi-dimensional array with session // information for the current user. we use serialize() to store // it in a database at the end of the request. $conn = odbc_connect ("webdb", "php", "chicken"); $stmt = odbc_prepare ($conn, "update sessions set data =? where id = ?"); $sqldata = array (serialize($session_data), $php_auth_user); if (!odbc_execute ($stmt, $sqldata)) {$stmt = odbc_prepare($conn, "insert into sessions (id, data) values(?, ?)"); if (!odbc_execute($stmt, $sqldata)) {/* something went wrong. bitch, whine and moan. */}}
where id = ?"); $sqldata = array (serialize($session_data), $php_auth_user); if (!odbc_execute ($stmt, $sqldata)) {$stmt = odbc_prepare ($conn, "insert into sessions (id, data) values(?, ?)"); if (!odbc_execute($stmt, $sqldata)) {/ * etwas lief schief.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting