下一篇 » « 上一篇

explode

作者:semirock    时间:2008-06-24    来源:http://444p.com    点击:128    本文共1篇文章 字体:[ ]

explode

<HTML>
<HEAD>
<TITLE>explode</TITLE>
</HEAD>
<BODY>
<?
/*
** convert tab-delimited list into an array
*/
$data = "red\tgreen\tblue";
$colors = explode("\t", $data);

// print out the values
for($index=0; $index < count($colors); $index++)
{
print("$index : $colors[$index] <BR>\n");
}
?>
</BODY>
</HTML>
发表评论
密码: (游客不需要密码)
记住我【Alt+S 或 Ctrl+Enter 快速提交】

搜索工具


《PHP函数》点击排行