urlencode用来对字符串进行url编码,经常要使用到
<?php $myurlparam = "hello this is a test message"; $site = "http://www.75271.com"; $query = $site; $query .= "&message=".urlencode( $myurlparam ); echo $query; ?>
urlencode用来对字符串进行url编码,经常要使用到
<?php $myurlparam = "hello this is a test message"; $site = "http://www.75271.com"; $query = $site; $query .= "&message=".urlencode( $myurlparam ); echo $query; ?>