<?php $variabila = array("componenta1", 2, 3);$ser = serialize($variabila); echo $ser, "\n"; $des = unserialize($ser);print_r($des);
Standard input is empty
a:3:{i:0;s:11:"componenta1";i:1;i:2;i:2;i:3;} Array ( [0] => componenta1 [1] => 2 [2] => 3 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!