Im trying to get 1 instance of a string removed from a string.
(eg: blablabla, removing 1 bla)
I'm just learning php so regex is still a little out of my league.
I tried this but it didnt work:
$input='blablabla';
$todelete='bla';
preg_replace($todelete, '', $input, 1);
But didnt work, got an error.
(Warning: Delimiter must not be alphanumeric or backslash)
Thanks in advance.