Rewrite a Bash script to php?
<p>how would I rewrite this as a php script. also if anyone knows of a better way other than LAME please let me know.</p>

<pre><code>for i in *.wav; do
    lame -h -b 192 "$i" "${i%.wav}.mp3"
done
</code></pre>
