2017-07-12 15:05:18 +02:00

28 lines
654 B
PHP

<?php
class Tools extends ToolsCore
{
public static function displayAttributesOrder($name) {
$name = explode(',', $name);
$arr2;
foreach ($name as $key => $value) {
$arr[] = explode(':', $value);
}
foreach ($arr as $key => &$value) {
foreach ($value as $key2 => &$value2) {
if($key2 == '1')
{
$value2 = '<span>'.$value2.'</span>';
}
}
$arr2[] = implode(':', $value);
}
$name = implode('<br/>', $arr2);
return $name;
}
}