0
I have the following array:
array(3) {
[1]=> array(3) {
["ordem"]=> string(1) "2"
["img"]=> string(66) "banner.jpg"
["chave"]=> string(20) "imagem_5adbea7baefaf"
}
[2]=> array(3) {
["ordem"]=> int(1) "2"
["img"]=> string(70) "Untitled-6.jpg"
["chave"]=> string(20) "imagem_5adbeb0d0f382"
}
}
I need to remove, delete a position from the array depending on the "past key" value. For example if the value passed in the function is "imagem_5adbeb0d0f382" then I have to delete index 2 from the array. Can someone help me?
The community recommends that you answer your own question and accept it as a solution if you have managed to resolve the issue on your own. ;)
– LipESprY