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? Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted January 21, 2010 Author Share Posted January 21, 2010 anyone? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.