<?php $str = 'floor2'; echo preg_replace('@\b(bcsqrt|bcpow|round|ceil|floor)\b\K|[^0-9.()+-/*%^:]@', '', $str);
You have javascript disabled. You will not be able to edit any code.