Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<meta charset="utf-8">
$count = 0;
$files = count(glob("/img/*.jpg"));
echo "<p>while文</p>";
while ($count <= $files) {
echo "<img src='img/$count.jpg' alt='' />";
echo "<br>";
$count++ ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.