Web Analytics Made Easy -
StatCounter Stripping slashes - CodingForum

Announcement

Collapse
No announcement yet.

Stripping slashes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stripping slashes

    Can this be modified so that, if there are any slashes, they will be stripped before being written to the .xbb file?

    PHP Code:
    myfwrite("foren/$forum_id-threads.xbb","$new_id\r\n","a"); myfwrite("foren/$forum_id-$new_id.xbb",$towrite,"w"); myfwrite("foren/$forum_id-ltopic.xbb",$new_id,"w"); 

  • #2
    try this:

    $text = str_replace('\', "", string);

    Comment


    • #3
      There is a function made for this exact purpose actually: http://www.php.net/manual/en/function.stripslashes.php
      OracleGuy

      Comment

      Working...
      X