Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/04/2009, 16:00
Avatar de aldo1982
aldo1982
 
Fecha de Ingreso: noviembre-2004
Ubicación: Santa Fe (Argentina) Colon F.C
Mensajes: 1.362
Antigüedad: 19 años, 5 meses
Puntos: 6
De acuerdo APORTE - Funcion para escapar Quotes

Código PHP:
<?php
function escape_quotes($receive) {
    if (!
is_array($receive))
        
$thearray = array($receive);
    else
        
$thearray $receive;
   
    foreach (
array_keys($thearray) as $string) {
        
$thearray[$string] = addslashes($thearray[$string]);
        
$thearray[$string] = preg_replace("/[\\/]+/","/",$thearray[$string]);
    }
   
    if (!
is_array($receive))
        return 
$thearray[0];
    else
        return 
$thearray;
}
?>
__________________
LA MUERTE ESTÁ TAN SEGURA DE VENCER QUE NOS DA TODA UNA VIDA DE VENTAJA