选择语言 :

 Module_OOP_ORM_Parse::_de_format_action_implode

分割字符串

array Module_OOP_ORM_Parse::_de_format_action_implode( fixed $data [, string $exp_str = string(1) "," , boolean $is_add_both_str = bool false ] )

参数列表

参数 类型 描述 默认值
$data fixed $data
$exp_str string 默认,分割 string(1) ","
$is_add_both_str boolean 是否在两段加上$exp_str bool false
返回值
  • array
File: ./modules/oop/orm/parse.class.php
protected static function _de_format_action_implode($data , $exp_str=',' , $is_add_both_str = false )
{
    $data = (string)$data;
    if ( $is_add_both_str )
    {
        $data = trim( $data , $exp_str );
    }
    if ( empty($data) )
    {
        return array();
    }
    return explode($exp_str,$data);
}