I have a PHP array like this one:
array( [0] => 1
[1] => 2
[2] => 3
[3] => Some strings
)
How can I remove an entry that is not an integer number from an array? I need to output this:
array( [0] => 1
[1] => 2
[2] => 3
)
Can someone give me a clue?
Use
array_filterwithis_intEdit:
As noted in the comments, it may be a better solution to use one of the following instead.