Skip to content

Instantly share code, notes, and snippets.

@JuniorMSG
Created March 31, 2017 17:43
Show Gist options
  • Save JuniorMSG/5b1896d6f54ca2c60b9d48f6d09cb38c to your computer and use it in GitHub Desktop.
Save JuniorMSG/5b1896d6f54ca2c60b9d48f6d09cb38c to your computer and use it in GitHub Desktop.
Test2
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> MSG Project</title>
</head>
<body>
<script type="text/javascript">
list = new Array("순기", "석수", "바보", "종화", "스억수");
i=0;
while(i < list.length){
document.write("<li>" + list[i] + "</li>");
i++;
}
</script>
<h1>PHP</h1>
<?php
$list = array("순기", "석수", "바보", "종화", "스억수");
$i = 0;
while($i < count($list)){
echo "<li>".$list[$i]."</li>";
$i++;
}
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment