<?php $paintings = [ ["24ef9-70076-4358c-48386.jpg", "La Donna Gravida", "649"], ["a7972-065a9-4c0f9-723d1.jpg", "Madonna and Child with the Book", "1254"], ["b054c-df208-0f600-e884e.jpg", "Madonna del Granduca", "1457"] ]; $painting = 'a7972-065a9-4c0f9-723d1.jpg'; foreach ($paintings as $index => $row) { if ($row[0] === $painting) { unset($paintings[$index]); break; // unless multiple rows might qualify } } var_export(array_values($paintings));
You have javascript disabled. You will not be able to edit any code.