thinkphp5, and the second parameter is wrong. Ask the god how to modify it. Thank you
<?php  
namespace app\controller;  
class Abs
{
    public function index(){
        function abc($value){
            if($value!==""){
                return true;
            }else{
                return false;
            }
        }
        $data = [
            "a"=>1,
            "b"=>0,
            "c"=>true,
            "d"=>false,
            "e"=>0,
            "f"=>"",
            "d"=>null
        ];
    
        return array_filter($data,"abc");
    }
} error report: 
 array_filter () expects parameter 2 to be a valid callback, function "abc" not found or invalid function name 
