Almost finished the fix for php 5.3 But stuck with this "Easy-to-Read" code $REP_UNDSCR="&| ";
$REP_SPACE="\?|%|'|\"|'|%|/|\||"|\*|#|\^|{|}|;|!|:|~|`|<|>|<|>|,|\\|\(|\)";
$ADDITIONAL_VAL = ereg_replace($REP_UNDSCR,'_',$ADDITIONAL_VAL);
$ADDITIONAL_VAL = ereg_replace($REP_SPACE,'',$ADDITIONAL_VAL); Someone can help to convert this to preg_replace