RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | webmastering
[php] Concaténation array clef et valeur
Ialp, le mar. 09 mai 2006 à 18:35:40
Bonjour,

J'ai un petit problème pour concaténer un tableau dans une boucle, seulement les valeurs, ça je sais faire, mais avec valeur et clef, je n'ai pas trouvé comment faire.

Exemple parlant de ce que je veux obtenir :


for($i=0; $i<5; $i++)
{
$array[] .= "clef $i" => "$valeur $i";
}


Bien entendu, j'ai un parse error.

Quelle est la syntaxe pour faire ça ?

Merci.


PhP
mai 06
Suivant
REPONSES
PhP
mai 06
Ialp
mai 06
PhP
mai 06
crewstyle
oct. 06
RLV
janv. 07
Lascar
juin 07
Torajio
juil. 07
Version Web
Réalisé par RedShift
no save