از تابع json_encode() برای رمزگذاری مقداری در قالب JSON استفاده میشود.
This example shows how to encode an associative array into a JSON object:
This example shows how to encode an indexed array into a JSON array: