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.
たとえば、現在私はこれをやっています:
foreach($myArray as $key => $unused) { // ここで $key を使用 }
$unused 値を指定せずにこれを行う方法はありますか?
<?php foreach(array_keys($myArray) as $key) {}
API