Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デコードされているリコードの数を調べる機能はありますか?
$doctors= json_decode(file_get_contents($url_containing_doctors_list),true);
したがって、forループを記述してから、Count変数のカウンターを増やす必要がありますか?
を使用して $doctors 配列の長さを決定できますcount($docters)。json 関数は、シリアル化を解除したレコードの数を返しません。
count($docters)