欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

标签构建1

程序员文章站 2022-04-03 19:28:29
...
跳至
 $v){
$t .= $k.'="'.$v.'"';
}
if(!$selfColse)
$t .= '>';
else
$t .= ' />';
if(!$selfColse)
$t .= $inner.'';
return $t;
}Play Angry Birds
// Example 1:
echo buildTag('input', array('type'=>'button', 'value'=>'WOOT!'), TRUE);

// Example 2:
echo buildTag('p', array('style'=>'border:solid 1px #000'), FALSE, buildTag('a', array('href'=>'http://google.com'), FALSE, 'Google'));
?>

相关标签: 标签构建