This is the example of my string.
$x = "John Chio - Guy";
$y = "Kelly Chua - Woman";
I need the pattern for the reg replace.
$pattern = ??
$x = preg_replace($pattern, '', $x);
Thanks
This is the example of my string.
$x = "John Chio - Guy";
$y = "Kelly Chua - Woman";
I need the pattern for the reg replace.
$pattern = ??
$x = preg_replace($pattern, '', $x);
Thanks
Use the
strstr
function.Example: