Convert special characters from PHP variables? -
this question has reply here:
php url encoding / decoding 4 answersi can print url following:
<?php print $base_url . $node_url ?>
what standard php way of converting special characters?
so instead of: http://time.com/3525666/ebola-psychology-fear-symptoms/
i need http%3a%2f%2ftime.com%2f3525666%2febola-psychology-fear-symptoms%2f
you utilize urlencode
sort of escaping.
other escaping functions exist other purposes, htmlspecialchars
making text output safely html display.
php
No comments:
Post a Comment