par
niuxe » 11 avr. 2013, 11:06
Salut,
Tu as deux solutions :
1.
function uneFonction(){
//... etc.
return $un.",".$deux.",".$trois;
}
//etc.
//...
$var = explode(",",uneFonction());
2.
function uneFonction(){
//... etc.
return array($un,$deux,$trois);
}
Salut,
Tu as deux solutions :
1.
[php]
function uneFonction(){
//... etc.
return $un.",".$deux.",".$trois;
}
//etc.
//...
$var = explode(",",uneFonction());
[/php]
2.
[php]
function uneFonction(){
//... etc.
return array($un,$deux,$trois);
}
[/php]