How can I remove the elements of the array from the beginning to the specified? for example, there is an array:
Array ( [title] => [keywords] => [category_id] => 23 [category] => 22 [subCategory] => 23 [typeCategory] => 25 [description] => [fullTextAdvert] => [price] => [rooms_apartament] => 0 [storey_apartament] => 0 [addPost] => ) I want to remove all items up to the [fullTextAdvert] element, inclusive. write 8 times (in this array the first 8 elements) unset ($ array ['element']) makes no sense, because there may be a different number of them
$arr = array_slice($arr, array_search('fullTextAdvert', array_keys($arr)) + 1, null, true);- Deonis