How to trim some word in php? Example like
pid=\"5\" OR pid=\"3\" OR
I want to remove the last OR
OR
What do you think about this?
$str='pid="5" OR pid="3" OR'; $new_str=substr($str,0, strlen($str)-3);