Like sorting out the array to know its key?

0 like 0 dislike
22 views
5ae7597e7f34e356153185.png
How to iterate the array and if it is an array of 2 elements to know its key(in this case 9)?
by | 22 views

2 Answers

0 like 0 dislike
rly?
\rhttps://secure.php.net/manual/ru/control-structure...

taschemta to ask such questions should be ashamed and unbearably painful.
by
0 like 0 dislike
foreach($arr as $key => $val) { / / $key is the key of the current element, and $val is the value }
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Apr 20, 2019 by di882210
0 like 0 dislike
1 answer
asked Apr 3, 2019 by nepster-web
0 like 0 dislike
4 answers
asked Mar 24, 2019 by SharkyFLY
110,608 questions
257,186 answers
0 comments
33,854 users