Today & Tomorrow...

勝手気ままな、備忘録的な感じです。

【phpの復習】

phpの復習】

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>指定個数の画像を表示する</title>
</head>

<body>
<?php 
$num=5;

for($i=0; $i<$num; $i++)
{
	print("<img src=\"img/0.jpg\">\n");
	}
?>
</body>
</html>

理解しやすいように、画像も入れてみました。