bonjour savez s'il est possible de construire un tableau dans le parametre de la fonction merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 function mafonction($var_array) { $array = array($var_array); [FONT=Courier]foreach( [/FONT][FONT=Courier]$array [/FONT][FONT=Courier]as [/FONT][FONT=Courier]$value [/FONT][FONT=Courier]) echo [/FONT][FONT=Courier]$value [/FONT][FONT=Courier]. [/FONT][FONT=Courier]'<br />'[/FONT][FONT=Courier];[/FONT] } mafonction(('1','2','3')) pb!
Partager