I need to delete the values inside the array that are before the given variable and store in the same key, thanks in advance.
$filter = 8;
Array
(
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
[13] => PHM
[14] => PHN
[15] => N
[17] => M9
[18] =>
)
My output should be,
Array(
[8] =>
[9] =>
[10] =>
[11] =>
[13] => PHM
[14] => PHN
[15] => N
[17] => M9
[18] =>
)