downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

gzinflate> <gzgets
[edit] Last updated: Fri, 24 May 2013

view this page in

gzgetss

(PHP 4, PHP 5)

gzgetss Obtiene la línea del apuntador al archivo gz y retira las etiquetas HTML

Descripción

string gzgetss ( resource $zp , int $length [, string $allowable_tags ] )

Función identica a gzgets(), excepto que gzgetss() intenta retirar cualquier etiqueta HTML y PHP del texto que esta leyendo.

Parámetros

zp

El apuntador al archivo gz. Debe ser válido y debe apuntar a un archivo abierto exitosamente por gzopen().

length

La longitud de los datos a obtener.

allowable_tags

Se puede usar éste parámetro opcional para especificar cuales etiquetas no se deben retirar.

Valores devueltos

La cadena descomprimida y sin etiquetas o FALSE en caso de error.

Ejemplos

Ejemplo #1 Ejemplo de gzgetss()

<?php
$handle 
gzopen('somefile.gz''r');
while (!
gzeof($handle)) {
   
$buffer gzgetss($handle4096);
   echo 
$buffer;
}
gzlose($handle);
?>

Ver también

  • gzopen() - Abre un archivo gz
  • gzgets() - Obtiene la línea del apuntador al archivo
  • strip_tags() - Retira las etiquetas HTML y PHP de un string



add a note add a note User Contributed Notes gzgetss - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites