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