B
B
BonBon Slick2017-05-07 13:44:17
PHP
BonBon Slick, 2017-05-07 13:44:17

Removing values ​​in an array before a specific one?

There is an array [5, 2, 999, 3, 1, 4]. It is necessary to remove all values ​​up to 999 , the result should be:
[999, 3, 1, 4].

Please tell me the best way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-05-12
@BonBonSlick

search + slice: ideone.com/0yvush

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question