Swapping bytes of text in PHP
<p>I basically need to port this piece of code to php</p>

<pre><code>for (i = 0; i &lt; 128/4; i++)
    data32[i] = bswap_32(data32[i]);
</code></pre>

<p>But, there is no bswap function in php. </p>

<p>Would someone be kind enough to provide me with something that could solve the problem?</p>
