with keys, do you mean only associative keys, e.g. those with a non-numeric index? For instance array('foo' => 'bar, 'baz') would return 1? Or you just want all keys?
google is your friend, but it'd better not be your only friend. When there is documentation available - and php has one of the best documentations I've ever read - use it. php.net/manual/en/ref.array.php
array('foo' => 'bar, 'baz')would return 1? Or you just want all keys?