|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » fopen() » preg_match() » header() » getimagesize() » htmlspecialchars() » ob_start() » session_start() » strstr() » ob_flush() » preg_match_all() » strpos() » flush() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » urlencode() » ereg_replace() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: gzgetss (PHP 3, PHP 4, PHP 5) gzgetss -- Get line from gz-file pointer and strip HTML tagsDescriptionstring gzgetss ( resource zp, int length [, string allowable_tags] )Identical to gzgets() , except that gzgetss() attempts to strip any HTML and PHP tags from the text it reads. Parameters
zp The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen() . lengthThe length of data to get. allowable_tagsYou can use this optional parameter to specify tags which should not be stripped. Return ValuesThe uncompressed and striped string, or FALSE on error. ChangeLog
Version Description 3.0.13 and 4.0b3 allowable_tags was added.
Examples
Example 1. gzgetss() example <?php $handle = gzopen('somefile.gz', 'r'); while (!gzeof($handle)) { $buffer = gzgetss($handle, 4096); echo $buffer; } gzlose($handle); ?> Related Function(s) |