<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
</html>
<body>
<?php
include 'sendMail.php';
echo date('h:i:s');
echo "<br/>";
$myarray = array();
array_push($myarray, "a", "b");
array_push($myarray, "c");
foreach ($myarray as $value) {
echo "Value: " . $value . "<br />";
}
for ($i=0; $i<count($myarray); $i++) {
echo "Value: " . $myarray[$i] . "<br />";
}
echo "<br/>";
echo date('h:i:s');
?>
</body>
</html>
php 数组 循环
原创
©著作权归作者所有:来自51CTO博客作者hongmin118的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Java 中数组的使用(一维数组和二维数组)
本文详细的介绍了,在Java 中数组的使用,并对其内存存在形式进行了详细的分析。
数组 一维数组 二维数组 java基础 -
php中数组的遍历之for循环
1. 使用for语句循环遍历数组需要注意
数组 i++ 遍历数组 css for语句