I want to replace multiple synonyms with one specific word.
$a = array( 'truck', 'vehicle', 'sedan', '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('Toyota','Lexus',$str));