title: Replacing special characters of items in array, PHP
body: <p>Let's say I have following string: <code>$string = "Ne, želim ići kući."</code> </p>
  
  <p>Then I split it with <code>preg_split("/[\s,.]+/",$string)</code> and get an array with every word in the sentence: <code>Array ( [0] =&gt; [1] =&gt; e [2] =&gt; želim [3] =&gt; ići [4] =&gt; kući [5] =&gt; )</code></p>
  
  <p>How can I now (for every array item) replace all the special characters into standard ascii ones?</p>
  
  <p>Is there an easier method to replace characters like <strong><em>ć</em></strong> and others than the following?</p>
  
  <pre><code>foreach ($array as $element) {
      echo str_replace("ć","c",$element);
      ...
  }
  </code></pre>
  
  <p>Or is there maybe a function which can handle the whole array by itself without any foreach-loops; something like <code>convert_to_ascii($array)</code></p>
  
  <p>Edit: Because I want to omit the for loop, I think this question is not a duplicate as flagged. My question is regarding a function which can handle and return whole arrays by itself.</p>