$a = array( 'truck', 'vehicle', 'seddan', 'coupe' ); $str = 'Honda is a truck. Toyota is a vehicle. Nissan is a sedan. Scion is a coupe.'; echo str_replace($a,'car',str_replace('Lexus','Toyota',$str));
This will replace vehicle->car and so on
Demo http://ideone.com/0I37nX
Hit me with a comment!