Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. $array = array("foo", "bar", "hello", "world");
  3. for($i=0; $i<count($array); $i++) {
  4.  
  5. echo "<p id="$i">This is paragraph $i.</p>";
  6.  
  7. }
  8. ?>
  9.  
  10. <%
  11. var array = new string[]{"foo", "bar", "hello", "world"};
  12. Response.ContentType = "text/html";
  13. for(int i = 0; i < array.Length; i++)
  14. {
  15. Response.Write(string.Format("<p id="{0}">This is paragraph {0}.</p>",i));
  16. }
  17. %>
  18.  
  19. <%
  20. var array = new string[]{"foo", "bar", "hello", "world"};
  21. Response.ContentType = "text/html";
  22. for(int i = 0; i < array.Length; i++) {
  23. Response.Write(string.Format("<p id="{0}">This is paragraph {0}.</p>",i));
  24. }
  25. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement