The problem is that your replacement string looks like this:
'$1$2$3$488$6'
^^^
Since the character following the group number is a number, it is interpreted as group 48 instead of group 4.
. preg_replace " # 1 , ". , , , 4 , 88.
$replacement = '$1' . '$2' . '$3'. '${4}'. $element_width . '$6';
, .
- CSS.
$elementwidth, $element_width.- 6 , .