Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- /* Creo un array */
- $las_vocales = array ('a','e','i','o','u');
- /* Recorro el array utilizando foreach */
- foreach ($las_vocales as $elem) {
- print $elem.'<br>';
- }
- print '<br>';
- /* Es equivalente a realizar */
- for ($i=0;$i<count($las_vocales);$i++) {
- print $las_vocales[$i].'<br>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement