stripslashes is used to strip backslashes from a string, i.e.,
stripslashes(“\\e”)===”e”
stripslashes(“\\n”)===”n”
stripslashes(“\n”)===”\n” //there is no backslash in the string.
stripcslashes almost does the same thing as stripslashes except it considers “\\n”,etc. as escaped representation of char newline, etc. In other words, stripcslashes recognizes C escaped string and does not strip the blackslash that is used to escape a character, but converts the escaped representation of a char to the char itself.
stripcslashes(“\\e”)===”e”
stripcslashes(“\\n”)===”\n”
stripcslashes(“\n”)===”\n”//no slash to strip
Comments are closed, but trackbacks and pingbacks are open.