I have following array result :
Array (
[0] => company_1
[1] => company_10
[2] => company_15
)
I want the result something like this as I can use in the mysql IN
query clause:
$result = "1, 10, 15";
I use explode function but again it is returning both array values separately like this:
Array (
[0] => Array (
[0] => company
[1] => 1
)
[1] => Array (
[0] => company
[1] => 10
)
[2] => Array (
[0] => company
[1] => 15
)
)
But wondering how can I only get numbers separately?