Php custom function is Truncating Text but i don't want it to
<p>I am passing a large amount of text to a php funtion and having it return it compressed. The text is being cut off. Not all of it is being passed back out.  Like some of the words at the very end aren't showing up after being compressed. Does Php limit this some where?</p>

<pre><code> function compress($buffer) {
    /* remove comments */
    $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
    /* remove tabs, spaces, newlines, etc. */
    $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
    return $buffer;
}
</code></pre>

<p>Is the function. Its from <a href="http://www.antedes.com/blog/webdevelopment/three-ways-to-compress-css-files-using-php" rel="nofollow">http://www.antedes.com/blog/webdevelopment/three-ways-to-compress-css-files-using-php</a> </p>

<p>Is there like a setting in php.ini to fix this??? Not sure.</p>
