php - How can I use ' without slash? -
i want post input box have single quote inside php file.i've used ' sends backslashes:
<input type="hidden" name="legal_natural" value="$store_info['legal_natural']">
result:
$store_info[\'legal_natural\']
please tell me how can avoid backslashes when post ' php file?
see : so question
here's answer question:
assume want send $content
variable instead of stripping backslashes, consider use urlencode() instead of rawurlencode()
. also, can use function once $content
variable.
$content = urlencode($content);
update: both urlencode , rawurlencode may not fit case. why don't send out $content without url encode? how send our query string? if using curl, not need encode parameters.
Comments
Post a Comment