[ create a new paste ] login | about

Link: http://codepad.org/TqDx9aNp    [ raw code | output | fork ]

PHP, pasted on Jul 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    <h1>Linguagens que vocĂȘ pode aprender</h1>
    <div>
      <ul>
        <?php
          $langs = array("JavaScript",
          "HTML/CSS", "PHP",
          "Python", "Ruby");
        
          foreach ($langs as $lang) {
              echo "<li>$lang</li>";
          }
        
          unset($lang);
        ?>
      </ul>
    </div>


Output:
1
2
3
4
5
    <h1>Linguagens que vocĂȘ pode aprender</h1>
    <div>
      <ul>
        <li>JavaScript</li><li>HTML/CSS</li><li>PHP</li><li>Python</li><li>Ruby</li>      </ul>
    </div>


Create a new paste based on this one


Comments: