用法:http_build_query($formdata[,string $numeric_prefix[,string $arg_spearotor]])
http_build_query函數是php5加入的,作用就是把數組或物件轉換成url的phpquerystring,
*/ $data=array( 'foo'=>'bar', 'baz'=>'boom', 'cow'=>'milk',. 'hypertext processor' ); //定義陣列 echo http_buil )($data); >"; $data=array('foo','bar' ,'baz','boom','cow' =>'milk','php'=>'hypertext processor'); echo http_build_query($data); >"; echo http_build_query($data,'myvar_'); //使用第二個參數 echo "
{
var $foo; / /為類別新增屬性
var $baz; //增加屬性
function
$this->foo='bar';
$this->baz= 'boom';
}
}
$data=new myclass(); //為類初始化物件使用$00000007070707070070000000000005(8777 -77 -87] -88需要物件);函數操作對象
?>