arrays - PHP foreach that returns keys only - Stack Overflow

PHOTO EMBED

Wed Aug 31 2022 14:21:32 GMT+0000 (UTC)

Saved by @kalehm

foreach(array_keys($array) as $key) {
 // do your stuff
}
content_copyCOPY

https://stackoverflow.com/questions/12346876/php-foreach-that-returns-keys-only