时间:2021-07-01 10:21:17 帮助过:6人阅读
array('$b-title','$b-keyword','$b-content'));$google=array('google'=>array('$g-title','$g-keyword','$g-content'));?>输出:
变量:数字、字母、下划线
字符串:引号括起来。
变量:数字、字母、下划线
字符串:引号括起来。
$btitle = "baidu";
$bkeyword = "search";
$bcontent = "baidu search";
$gtitle = "google";
$gkeyword = "search";
$gcontent = "google search";
$baidu=array('baidu'=>array('$btitle','$bkeyword','$bcontent'));
$google=array('google'=>array('$gtitle','$gkeyword','$gcontent'));
?>
$b_title = 'baidu'; $b_keyword = 'search'; $b_content = 'baidu search'; $baidu = array('b-title'=>$b_title,'b-keyword'=>$b_keyword,'b-content'=>$b_content); echo http_build_query($baidu);