how can i remove a word and after that from paragraph ?
How To Remove all text after this (test ) word from a strings ?
ABC DEF GHEE JUL *test MON ...*
ABC DEF GHEE JUL
You can split easy
$string = "ABC DEF GHEE JUL test MON"; $splitted = explode("test", $string); $result = $splitted; //ABC DEF GHEE JUL