Tag: serialize

Comparing json_encode and serialize in PHP
2021-01-19 14:15:01

Both functions json_encode and serialize in PHP can be used to convert an object or array value to a string type. However, the conversion logic of these two functions is not the same. Also, with the same value used for conversion, the last received string has completely different formats.

Read more  

The serialize() function in PHP
2021-01-19 13:58:47

The function serialize() encodes the variable value passed into a special string, the function returns the encoded string. Note: the function serialize() can be used with an array of data.

Read more