Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. $ciudades= array ("madrid", "barcelona", "londres","new york", "los angeles","chicago");
  4. $ciudad= "";
  5. $indice=0;
  6. while ($ciudad != "londres"){
  7. $ciudad=$ciudades [$indice];
  8. echo ($ciudad."<br>");
  9. $indice++;
  10. }
  11. echo ("final de la ejecucion");
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement