protected static function smart_array_merge ($array1, $array2) {
		if (isset($array1['class'], $array2['class'])) {
			$array1['class'] .= " $array2[class]";
			unset($array2['class']);
		}
		if (isset($array1['style'], $array2['style'])) {
			$array1['style'] = trim($array1['style'], ';').";$array2[style]";
			unset($array2['style']);
		}
		return array_merge($array1, $array2);
	}
protected static function smart_array_merge ($array1, $array2) {
		if (isset($array1['class'], $array2['class'])) {
			$array1['class'] .= " $array2[class]";
			unset($array2['class']);
		}
		if (isset($array1['style'], $array2['style'])) {
			$array1['style'] = trim($array1['style'], ';').";$array2[style]";
			unset($array2['style']);
		}
		return array_merge($array1, $array2);
	}
protected static function smart_array_merge ( $ array1 , $ array2 ) { if ( isset ( $ array1 [ 'class' ] , $ array2 [ 'class' ] ) ) { $ array1 [ 'class' ] .= " $array2[class]" ; unset ( $ array2 [ 'class' ] ) ; } if ( isset ( $ array1 [ 'style' ] , $ array2 [ 'style' ] ) ) { $ array1 [ 'style' ] = trim ( $ array1 [ 'style' ] , ';' ) . ";$array2[style]" ; unset ( $ array2 [ 'style' ] ) ; } return array_merge ( $ array1 , $ array2 ) ; }
Merging of arrays, but joining all 'class' and 'style' items, supports only 2 arrays as input

@static

@param array $array1
@param array $array2

@return array
Merging of arrays but joining all class and style items supports only 2 arrays as input