- var_dump: documentation ( source)
- unserialize: documentation ( source)
- serialize: documentation ( source)
- file_put_contents: documentation ( source)
<?php
$test_fixed_array = New SplFixedArray(3);
$test_fixed_array[0] = 0;
$test_fixed_array[1] = 1;
$test_fixed_array[2] = 2;
$ser = serialize($test_fixed_array);
$test_fixed_array_recover = unserialize($ser);
var_dump($test_fixed_array_recover);
file_put_contents("test.txt", $ser);