For example, currently I am doing this:
foreach($myArray as $key => $unused) { //use $key here }
Is there a way to do this without having to specify the $unused value?
<?php
foreach(array_keys($myArray) as $key) {}
API
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With