日期:2014-05-16 浏览次数:20599 次
<?php
$b-title = baidu;
$b-keyword = search;
$b-content = baidu search;
$g-title = google;
$g-keyword = search;
$g-content = google search;
$baidu=array('baidu'=>array('$b-title','$b-keyword','$b-content'));
$google=array('google'=>array('$g-title','$g-keyword','$g-content'));
?>
输出:
<html>
<head>
<title></title>
<meta name="keywords" content="" />
</head>
<body>
</body>
</html>
$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);