difference between stripslashes and stripcslashes

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

 

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:
Posted in

Comments are closed, but trackbacks and pingbacks are open.