拼接字符串
string Module_OOP_ORM_Parse::_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
string
protected static function _format_action_implode($data , $exp_str=',' , $is_add_both_str = false )
{
$v = (string)implode($exp_str, $data);
if ( $v==='' )
{
return '';
}
else
{
if ( $is_add_both_str )
{
return $exp_str.$v.$exp_str;
}
else
{
return $v;
}
}
}