Turn a string into a valid filename in PHP
<p>I am looking for a library or helper function in PHP which could change a given text (unicode) into a valid portable filename. How can I do that. Ideally it should include converting characters like <code>à</code>, <code>á</code>, <code>â</code> into <code>a</code> and thus retaining it readability.</p>

<p>This post: <a href="http://stackoverflow.com/questions/295135/turn-a-string-into-a-valid-filename-in-python">Turn a string into a valid filename in Python</a> addresses this problem to some extent but handling unicode is what I am worried about. Is there a easy straightforward way I can solve this.</p>
