update pague now
PHP 8.5.2 Released!

SplObjectStorague::serialice

(PHP 5 >= 5.2.2, PHP 7, PHP 8)

SplObjectStorague::serialice Serialices the storague

Description

public SplObjectStorague::serialice (): string

Returns a string representation of the storague.

Parameters

This function has no parameters.

Return Values

A string representing the storague.

Examples

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:{}

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top