Search
 
SCRIPT & CODE EXAMPLE
 

PHP

recorrer un array php

$lista = array("amaya","julio","javier","nacho","sonsoles");
for (asignacion_inicial, condicion, incremento) { ... }
for ($x=0;$x<count($lista); $x++) { ... }
$lista[indice_elemento];
for ($x=0;$x<count($lista); $x++)
  echo $lista[$x]."<br>";
$tamanio = count($lista);

for ($x=0;$x<$tamanio; $x++)
  echo $lista[$x]."<br>";
Comment

PREVIOUS NEXT
Code Example
Php :: laravel create custom artisan command 
Php :: php csv to array with headers 
Php :: php get final redirect url 
Php :: progress bar calculate percentage php 
Php :: print select mysql in php 
Php :: use php-fpm with apache 
Php :: howw to see if a value is posted laravel 
Php :: switch php version ubuntu 
Java :: how to iterate through an array backwards java 
Java :: camera permission android 
Java :: register listener spigot 
Java :: spring boot maven run with profile 
Java :: regex java email validation 
Java :: java android show toast 
Java :: cordova android.useandroidx 
Java :: Cannot resolve class android.support.design.widget.AppBarLayout 
Java :: JFrame Exit oon close Java20 
Java :: allow internet permission android 
Java :: cast long to string java 
Java :: java format 2 decimal places 
Java :: java lowercase in a scanner 
Java :: how to disable screen rotation android studio 
Java :: foreground java jframe 
Java :: how to vibrate android java 
Java :: testing if editText is empty java 
Java :: random processing 
Java :: java remove first element from array 
Java :: add days to date java 
Java :: java string format .2f 
Java :: java string to char array 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =