Salut je veux un tableau qui retourne un tableau est ce possible je fais ca
mais ca ne marche pasCode:
1
2
3
4
5
6
7 function test(){ $a[0] =1; $a[1] = 2 $a[2] = 3; return $a }
Version imprimable
Salut je veux un tableau qui retourne un tableau est ce possible je fais ca
mais ca ne marche pasCode:
1
2
3
4
5
6
7 function test(){ $a[0] =1; $a[1] = 2 $a[2] = 3; return $a }
C'est portant le bon principe, rajoute quand même $a = array(); tout au début de la fonction.