是否有函数可以找出正在解码的重新编码的数量
$doctors= json_decode(file_get_contents($url_containing_doctors_list),true);
所以我必须编写一个 forloop 然后增加 Count 变量的计数器?
您可以使用
count($docters)
确定$doctors数组的长度。json 函数不返回它已取消序列化的记录数。