Remplir un array avec une boucle PHP
Fermé
Adamsong182
Messages postés
1
Date d'inscription
mardi 17 mars 2009
Statut
Membre
Dernière intervention
19 mars 2009
-
19 mars 2009 à 09:10
aladin07 Messages postés 277 Date d'inscription vendredi 13 avril 2012 Statut Membre Dernière intervention 30 septembre 2012 - 7 juin 2012 à 00:02
aladin07 Messages postés 277 Date d'inscription vendredi 13 avril 2012 Statut Membre Dernière intervention 30 septembre 2012 - 7 juin 2012 à 00:02
A voir également:
- Remplir un tableau php
- Tableau croisé dynamique - Guide
- Alert php ✓ - Forum PHP
- Tableau ascii - Guide
- Afficher un tableau en c - Forum C
- Remplir un tableau en c ✓ - Forum C
3 réponses
JR des cavernes
Messages postés
152
Date d'inscription
mardi 6 mai 2008
Statut
Membre
Dernière intervention
19 mai 2009
84
19 mars 2009 à 09:15
19 mars 2009 à 09:15
Salut, tu peux faire :
$tableau = array();
while(ta condition)
{
$tableau[] = valeur;
}
avec for ça marche aussi bien sûr.
$tableau = array();
while(ta condition)
{
$tableau[] = valeur;
}
avec for ça marche aussi bien sûr.
26 sept. 2010 à 23:07
genre tu as | id | nom | prenom | a mettre dans ton tableau?
6 juin 2012 à 23:40