static function guessType($value)
    {
        $map = array(
            "float"=>"number",
            "double"=>"number",
            "int"=>"number",
            "integer"=>"number",
            "bool"=>"number",
            "numeric"=>"number",
            "string"=>"string",
        );

        $type = strtolower(gettype($value));
        foreach ($map as $key=>$value) {
            if (strpos($type, $key)!==false) {
                return $value;
            }
        }
        return "unknown";
    }
static function guessType($value)
    {
        $map = array(
            "float"=>"number",
            "double"=>"number",
            "int"=>"number",
            "integer"=>"number",
            "bool"=>"number",
            "numeric"=>"number",
            "string"=>"string",
        );

        $type = strtolower(gettype($value));
        foreach ($map as $key=>$value) {
            if (strpos($type, $key)!==false) {
                return $value;
            }
        }
        return "unknown";
    }
static function guessType ( $ value ) { $ map = array ( "float" => "number" , "double" => "number" , "int" => "number" , "integer" => "number" , "bool" => "number" , "numeric" => "number" , "string" => "string" , ) ; $ type = strtolower ( gettype ( $ value ) ) ; foreach ( $ map as $ key => $ value ) { if ( strpos ( $ type , $ key ) !== false ) { return $ value ; } } return "unknown" ; }
Try to get type of a value

@param mixed $value A value needed to guess type

@return string Possible type of a value
Try to get type of a value