Studyon Minte9.com
ZCE 5.3




Storage



serialize() - transporm to json

<?php $data = array( 'firstname' => 'John', 'name' => 'Smith', 'age' => 30, ); echo $string = serialize($data); // a:3:{s:9:"firstname";s:4:"John";s:4:"name";s:5:"Smith";s:3:"age";i:30;} $result = unserialize($string); print_r($result); // Array ( [firstname] => John [name] => Smith [age] => 30 )