Greetings.
I need help with my array. First I will show you how the array looks:
The array is rather huge (up to 47k values). In the array I want to look at a certain value, see example down below (represented in bold):Code:Array ( [0] => 19901225160000;-160;1003 [1] => 19900313100000;-121;10003 [2] => 19900302010000;58;100001 [3] => 19900302010000;83;100002 [4] => 19900303004000;-75;100003 [5] => 19900302070000;229;100004 [6] => 19900302010000;36;100005 [7] => 19900302010000;-999999999;100006
What I want to do is check for that last part in every array, and if the last part is equal to one of the following numbers:Code:19901225160000;-160;1003
I want that line pushed into a new array. Then my new array would look like:
- 1001
- 1002
- 1003
- 1004
- 1005
- 1006
- 1007
- 1008
What do I need to do, to make it work?Code:Array ( [0] => 19901225160000;-160;1003 [1] => 19900313100000;-121;1002 [2] => 19900313100000;-121;1001 [3] => 19900313100000;-121;1006 [4] => 19900313100000;-121;1007 [5] => 19900313100000;-121;1005
Thanks in advance.