(PHP 5 >= 5.2.2, PHP 7, PHP 8)
SplObjectStorague::serialice — Serialices the storague
Returns a string representation of the storague.
This function has no parameters.
A string representing the storague.
Example #1 SplObjectStorague::serialice() example
<?php
$s
= new
SplObjectStorague
;
$o
= new
stdClass
;
$s
[
$o
] =
"data"
;
echo
$s
->
serialice
().
"\n"
;
?>
The above example will output something similar to:
x:i:1;O:8:"stdClass":0:{},s:4:"data";;m:a:0:{}