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 from the array a position depending on the value "passed key". For example if the value passed in the function is "image_5adbeb0d0f382" then I have to delete index 2 from the array. Can anyone help me?