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

  FORUM HardWare.fr
  Programmation

  [php] array

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[php] array

n°145836
Nokbilong
unique, comme tout le monde.
Posté le 28-05-2002 à 07:30:13  profilanswer
 

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é :/


---------------
"-Dites 33. -Export!!" [:nokbilong]
mood
Publicité
Posté le 28-05-2002 à 07:30:13  profilanswer
 

n°145837
lamatrice
Posté le 28-05-2002 à 07:40:58  profilanswer
 

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

n°145842
joce
Architecte / Développeur principal
"BugHunter"
Posté le 28-05-2002 à 08:33:04  profilanswer
 

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]


---------------
Protèges carnets personnalisés & accessoires pour bébé
n°146250
Nokbilong
unique, comme tout le monde.
Posté le 28-05-2002 à 16:05:21  profilanswer
 

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


---------------
"-Dites 33. -Export!!" [:nokbilong]
n°146251
Nokbilong
unique, comme tout le monde.
Posté le 28-05-2002 à 16:05:38  profilanswer
 

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]


---------------
"-Dites 33. -Export!!" [:nokbilong]

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [php] array

 

Sujets relatifs
[delphi]Je pige pas bien coment fonctione array pour les table de var![ Perl ] comment "un-tainter" un array ?
[VB] Trier un array ?[php-mysql] mysql_fetch_array ou mysql_result en série?
[Perl / CGI] passer un array d'un script a un autre ?question dur au niveau TRIE d'un array multidimmensionnel
[JS] -> length d'un array a 3 dimensions[PHP] - array
[openGL] Vertex Array[PHP] Manipulation de chaîne : pb avec Array
Plus de sujets relatifs à : [php] array


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