json to associative array php online code example Example: php json string to associative array $assocArray = json_decode($data, true);