Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $array = array("foo", "bar", "hello", "world");
- for($i=0; $i<count($array); $i++) {
- echo "<p id="$i">This is paragraph $i.</p>";
- }
- ?>
- <%
- var array = new string[]{"foo", "bar", "hello", "world"};
- Response.ContentType = "text/html";
- for(int i = 0; i < array.Length; i++)
- {
- Response.Write(string.Format("<p id="{0}">This is paragraph {0}.</p>",i));
- }
- %>
- <%
- var array = new string[]{"foo", "bar", "hello", "world"};
- Response.ContentType = "text/html";
- for(int i = 0; i < array.Length; i++) {
- Response.Write(string.Format("<p id="{0}">This is paragraph {0}.</p>",i));
- }
- %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement