php - How to filter array values -


i have array this, need filter string keys array don't know how it, new php please me.

array (     [0] => array         (             [id] => 2             [0] => 2             [status] => 0             [1] => 0             [user] => 86             [2] => 86             [project] => 0             [3] => 0             [task] => 36             [4] => 36             [day] => 06/30/2013             [5] => 06/30/2013         ) ) 

i want make array bellow

array (     [0] => array         (             [id] => 2             [status] => 0             [user] => 86             [project] => 0             [task] => 36             [day] => 06/30/2013          ) ) 

can 1 please tell me how it?

this may not best way but:

foreach($array $key => $value) {    if(is_string($key)) {       $new_array[$key] = $value;    } } 

where

$array  

is array.

this rebuild array $new_array using elements have string key.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -