I have an array which have null and 0 values.So I want to remove null and 0 from array
Array
(
    [_token] => cwnTLDn9fhT1UTMDL6e9TxQXdvfoAK74MZjDMjnr
    [datefrom] => 
    [dateto] => 
    [Productivity] =>  
    [Productivityrating] => 0
    [Technical_Skills] =>  
    [Technical_Skillsrating] => 0
    [Work_Consistency] =>  
    [Work_Consistencyrating] => 0
    [Presentation_skills] =>  
    [Presentation_skillsrating] => 0
    [checkvalue] => Array
        (
            [test] => Rejected
        )
    [test] =>  dfdfd
    [testrating] => 0
    [userid] => 
    [userid_giv] => 
    [user] => 
    [submit] => REJECT
)
I am trying to delete null values and 0 from array.so I tried
$value= array_filter($_POST);
       echo '<pre>';
       print_r($value);exit;
I got output like
Array
(
    [_token] => cwnTLDn9fhT1UTMDL6e9TxQXdvfoAK74MZjDMjnr
    [checkvalue] => Array
        (
            [Productivity] => Rejected
        )
    [Productivity] =>  sd
    [Technical_Skills] =>  
    [Work_Consistency] =>  
    [Presentation_skills] =>  
    [test] =>  
    [submit] => REJECT
)
Still some field remain.Please help me
 
     
    