1
0
mirror of synced 2024-11-26 07:16:08 +03:00

added explodeFIO func

This commit is contained in:
Grisha Pomadchin 2013-09-09 16:46:37 +04:00
parent 1524a94db0
commit 3fa296423b

View File

@ -427,4 +427,17 @@ class ICrmOrderActions
return $APPLICATION->ConvertCharset($str, 'utf-8', SITE_CHARSET); return $APPLICATION->ConvertCharset($str, 'utf-8', SITE_CHARSET);
} }
public static function expodeFIO($str) {
if(!$str)
return array();
$array = expolde(" ", ICrmOrderActions::toJSON($str), 3);
foreach($array as &$ar)
if(!$ar)
unset($ar);
return $array;
}
} }