![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 137 Pomógł: 0 Dołączył: 23.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam jak powinna wyglądać prawidłowa forma funkcji unserialize ?
obecnie mam tak i nie działa echo unserialize ($tem); Cały skrypt CODE $tem = array ("sty" => 2 , "lut"=>3, "mar"=>5 ); $tem = array ("sty" => 2 , "lut"=>3, "mar"=>5 ); echo "funkcja serialize"; echo " "; echo serialize ($tem); echo " funkcja unserialize"; echo unserialize ($tem); ?> |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 137 Pomógł: 0 Dołączył: 23.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
no jest ok tylko w skrypcie wyskakuje error (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
CODE funkcja serialize
a:3:{s:3:"sty";i:2;s:3:"lut";i:3;s:3:"mar";i:5;} funkcja unserialize Warning: unserialize() expects parameter 1 to be string, array given in /var/www/php_w_mgnieniu_oka/tab-asoc-echo_serialize.php on line 20 bool(false) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 10:36 |