| |
|
|
| |
-
PHP - Elementos estructurales - Función stripslashes( )
-
Esta función borra las barras invertidas que se encuentren antes de las comillas y si se encuentran dos barras invertidas, las convierte en una barra
invertida simple.
Ejemplo:
<html>
<head>
<title>función stripslashes( )</title>
</head>
<body bgcolor="#eceaf3">
<font face = "verdana" size='+1'>
<pre>
<form action="form.php" method="post">
<textarea rows="3" cols="30" name="historia"> </textarea>
<br>
<input type="submit" name="submit" >
<input type="reset">
</form>
<?php
if(isset($_POST['submit']))
{
$input=$_POST["historia"];
print stripslashes($input);
}
?>
</pre>
</font>
</body>
</html>
 |
|
Ultima actualisación: Tue, 24 ▪ May ▪ 2011
|
|
|
|