Skip to main content

Unserialize variable

Anatomy

<unserialize var="var">
string
</unserialize>

Description: UNSERIALIZE generates a structural value from a stored representation.

UNSERIALIZE is the complement of the SERIALIZE operation.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name unserialize

Results:

BindingTypePredicate
varN/A

Examples

Example

<unserialize var="names">a:2:{s:2:"bg";s:10:"Bill Gates";s:2:"sj";s:10:"Steve Jobs";}</unserialize>
<output>$names.bg</output>
<!-- Bill Gates -->