addslashes() 就是把一些字符加上"\" 生成C语言标准的格式

解决方案 »

  1.   

    <?php
    $string = 'cup';
    $name = 'coffee';
    $str = 'This is a $string with my $name in it.<br>';
    echo $str;
    eval ("\$str = \"$str\";");
    echo $str;
    ?>
     The above example will show: This is a $string with my $name in it.
    This is a cup with my coffee in it.
     
      

  2.   

    lazio_qiu(我要申请) 
    谢谢,那后面的几个函数呢?
      

  3.   

    http://www.eaoo.com/design/ 看看上面的文章!
      

  4.   

    看看php manual(php.net上下载)吧, 那个例子是php manual上的.