PHP: serialize() Function

February 12, 2021

Convert a storable representation of a value. The serialize() function converts a storable representation of a value. To serialize data means to convert a value to a sequence of bits, so that it can be stored in a file, a memory buffer, or transmitted across a network.

 

<?php
$data = serialize(array("Red", "Green", "Blue"));
echo $data;
?>

Leave A Comment