Answer the question
In order to leave comments, you need to log in
Why doesn't iterate over and split an array in php?
There is an array like
Array ( [uid] => 5551577722424 [name] => Ana [gender] => female [pic_3] => https://i.mycdn.me/image?id=839846908062&bid=848695320478&t=33&plc=API&ts=000000004d011304a5&viewToken=fcizknwfq6YEP4ma8idLww&aid=1246684928&tkn )
// $count - число элементов массива
for ($i = 0 ; $i <= $count; $i++) {
if ($two_friend [$i] ['gender'] == 'female') {
$femaleGender = $two_friend[$i];
}
else {
$MaleGender = $two_friend[$i];
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question