PHP get array keys only of arrays

You can use PHP’s array_keys function to grab the keys:

Typical way is loop foreach:

foreach(array_keys($parameters) as $key){
  echo $key . "<br>";

By Keenlio, April 24, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

+ six = 12

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>