dennismonsewicz Posted January 21, 2010 Share Posted January 21, 2010 I am trying to do a find and replace of a spanish word in a string but can't get it to work... $tele_array = array('teléfonos', 'teléfono'); $apar_array = array('aparatos', 'aparato'); if($culture == 'es-US' && $id == 1) { if(strstr($answer, 'teléfonos')) { echo 'Found it!'; $answer = str_replace($tele_array, $apar_array, $answer); } } the echo statement does not display and the rest of the script continues. Any thoughts? Link to comment https://forums.phpfreaks.com/topic/189337-trying-to-find-a-spanish-word-in-a-string/ Share on other sites More sharing options...
dennismonsewicz Posted January 21, 2010 Author Share Posted January 21, 2010 anyone? Link to comment https://forums.phpfreaks.com/topic/189337-trying-to-find-a-spanish-word-in-a-string/#findComment-999584 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.