Salut,

J'ai besoin d'une fonction de type explode en PHP
Mon probléme est comment renvoyé un tableau en argument de la fonction

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
function explode(chaine:string):string;
var
i:integer;
begin
        i:=0;
        while (i<length(chaine)) do
        begin
                if (chaine[i]=' ') then break;
                i := i+1;
        end;
        Result := copy(chaine,1,i);
end;
Pour l'instant j'ai fait ca pour commencer.
Maintenant j'aimerai récuperer le reste de la chaine et placer le resultat dans un tableau
merci