Source Code:
(back to article)
<?php // Complex array $myvar = ['hello', 36, [1, 'two'], 'apple']; // Convert to a string $string = serialize($myvar); // Printing the serialized data echo $string; ?>
Result:
Report an issue