Home > Article > Backend Development > php addslashes function
Official definition: addslashes() function returns a string with backslashes added before predefined characters.
For example:
<code><span>$var</span>=<span>'"hubei" is my hometown.'</span>; <span>echo</span> addslashes(<span>$var</span>); output:\<span>"hubei\" is my hometown. </span></code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
The above introduces the php addslashes function, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.