remove the prefix from a string php code example Example: php remove prefix from string $str = preg_replace('/^bla_/', '', $str);