Use preg_replace
for that:
echo preg_replace("/\b[a-z]*day\b/i", '', "Wednesday dynamic date");
// output:
dynamic date
6
solved Remove string from string contain specific
Use preg_replace
for that:
echo preg_replace("/\b[a-z]*day\b/i", '', "Wednesday dynamic date");
// output:
dynamic date
6
solved Remove string from string contain specific