Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousCadenasAddSlashesnext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | German

AddCSlashes

(PHP 4 )

AddCSlashes -- Marca una cadena con barras al estilo del C

Descripción

string addcslashes ( string cad, string listcar)

Devuelve una cadena con barras invertidas antes de los caracteres listados en el parámetro listcar. También marca \n, \r etc. Al estilo del C, los caracteres con códico ASCII inferior a 32 y superior a 126 son convertidos a representación octal. Tenga cuidado cuando marque caracteres alfanuméricos. Puede especificar un rango en listcar como el "\0..\37", que marcaría todos los caracteres con código ASCII entre 0 y 31.

Ejemplo 1. Ejemplo de addcslashes()

$tradformado = addcslashes ($no_transf, "\0..\37!@\177..\377");

Nota: Añadida en PHP4b3-dev.

Vea también stripcslashes(), stripslashes(), htmlspecialchars(), htmlspecialchars(), y quotemeta().

User Contributed Notes
AddCSlashes
add a note about notes
There are no user contributed notes for this page.
previousCadenasAddSlashesnext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST