选择语言 :

 Module_Database_Result::is_bin

设置指定的key是二进制数据

此方法必须在as_array或current等前面执行 当启用自动编码转换后,获取的数据会自动转码,通过此设置后可以避免对应的字段被转码

$this->is_bin('key1');
$this->is_bin('key1' , 'key2');
$this Module_Database_Result::is_bin( string $key )

参数列表

参数 类型 描述 默认值
$key string $key
返回值
  • $this
File: ./modules/database/result.class.php
public function is_bin( $key )
{
    $keys = func_get_args();
    foreach ($keys as $key)
    {
        $this->_charset_is_bin_field[$key] = true;
    }
    return $this;
}