I have a string that looks like this:
$str = \"bla_string_bla_bla_bla\";
How can I remove the first bla_; but only if it\'s fo
bla_
You can use regular expressions with the caret symbol (^) which anchors the match to the beginning of the string:
^
$str = preg_replace('/^bla_/', '', $str);