I need to serialize array which contains URLs:
Array(
‘url1’ => ‘http://www.example.com’,
‘url2’ => ‘http://www.example1.com’
)
and store it in DB.
When I serialize it standard way, it doesn’t work as it contains special chars. I found solution to encode it with base64_encode . Then it works but string is unreadable from me in DB manager program. Is there a way to make this work without base64_decode ?
json_encodeis popular these days, and helps make your data portable.