Created
May 29, 2020 14:37
-
-
Save ombak/12b83a544e865935d642292ebd8ef86f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$array = array('sukma', 'wijaya', 'saputra'); //...array | |
$int = 14000; //...int | |
$string = 'Sukma Wijaya Saputra'; //...string | |
//...generate value | |
$aData = serialize($array); | |
$sData = serialize($int); | |
$iData = serialize($string); | |
echo unserialize($aData); //...result: array | |
echo unserialize($sData); //...result: 14000 | |
echo unserialize($iData); //...result: Sukma Wijaya Saputra |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment