Unaccent function return 1
<p>I'm trying to use unaccent function to remvoe special characters.</p>

<p>If put: echo Unaccent('áéç'); results are ok</p>

<p>When i try to add a exploded parameter:  echo Unaccent($foo[1]); results is 1</p>

<p>Any suggestion?</p>

<pre><code>$fiche = file('fiches.txt');
foreach ($fiche as $line_num =&gt; $line) {
echo $line;

$foo = explode (",", $line);

function Unaccent($string)
{
return preg_replace('~&amp;([a-z]{1,2})(acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1', htmlentities($string, ENT_QUOTES, 'UTF-8'));
}

echo Unaccent($foo[1]);
</code></pre>
