Encoding long strings with PHP’s serialize()

Sometimes it makes sense to store in DB simple settings or blocks of text (strings) with PHP’s serialize() function – although JSON appears to be more faster (and language agnostic).

Note to self: remove any simple quotes

Advertisements