Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
999 connectés 

 


Dernière réponse
Sujet : [php] array
Nokbilong

joce a écrit a écrit :

Description
array array_slice ( array array, int offset [, int length])
 
 
array_slice() returns the sequence of elements from the array array as specified by the offset and length parameters.
 
If length is given and is positive, then the sequence will have that many elements in it. If length is given and is negative then the sequence will stop that many elements from the end of the array. If it is omitted, then the sequence will have everything from offset up until the end of the array.  
 
Note that array_slice() will ignore array keys, and will calculate offsets and lengths based on the actual positions of elements within the array.  
 
 




 
 
thx vé voir ca :)
 
je comprend pas que je l'avais pas vu  :heink: je devais etre trop def :p

 

[jfdsdjhfuetppo]--Message édité par Nokbilong le 28-05-2002 à 16:07:17--[/jfdsdjhfuetppo]


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Nokbilong

joce a écrit a écrit :

Description
array array_slice ( array array, int offset [, int length])
 
 
array_slice() returns the sequence of elements from the array array as specified by the offset and length parameters.
 
If length is given and is positive, then the sequence will have that many elements in it. If length is given and is negative then the sequence will stop that many elements from the end of the array. If it is omitted, then the sequence will have everything from offset up until the end of the array.  
 
Note that array_slice() will ignore array keys, and will calculate offsets and lengths based on the actual positions of elements within the array.  
 
 




 
 
thx vé voir ca :)
 
je comprend pas que je l'avais pas vu  :heink: je devais etre trop def :p

 

[jfdsdjhfuetppo]--Message édité par Nokbilong le 28-05-2002 à 16:07:17--[/jfdsdjhfuetppo]

Nokbilong

lamatrice a écrit a écrit :

tu fais une boucle for et à l'interieur tu créer un IF  




 
 
ouai comme je le disait + haut c pas dur mais je prefere voir qi y'a pas un fonction buildin qui le fait

joce Description
array array_slice ( array array, int offset [, int length])
 
 
array_slice() returns the sequence of elements from the array array as specified by the offset and length parameters.
 
If length is given and is positive, then the sequence will have that many elements in it. If length is given and is negative then the sequence will stop that many elements from the end of the array. If it is omitted, then the sequence will have everything from offset up until the end of the array.  
 
Note that array_slice() will ignore array keys, and will calculate offsets and lengths based on the actual positions of elements within the array.

 

[jfdsdjhfuetppo]--Message édité par joce le 28-05-2002 à 08:34:02--[/jfdsdjhfuetppo]

lamatrice tu fais une boucle for et à l'interieur tu créer un IF
Nokbilong j'ai une chaine que j'explode pour mettre en array
 
en fait mon pb c des recup tout les element sauf le 1er de l'array. y'a une fonction qui permet de retourner tous les element a partir du N ieme ou de virer le N ieme element ?
 
avec une tite boucle c simple mais je pense qu'il doit exister une fonction qui le fait mais j'ai pas trouvé :/

Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR