Table des matières
- Arrays -- Tableaux
- array
- hash
array
Date de publication: le samedi 2 avril 2011 à 15h03
Dernière modification: par Pascal BOYER le samedi 2 avril 2011 à 15h19
toutes versions
Summary / Résumé
Creates and returns a new array.
Crée et renvoie un nouveau tableau.
Usage / Utilisation
array( element1 [, element2 [, ... ] ] )
Parameters / Paramètres
|
Name Nom | Type | Description |
Required Requis |
|---|---|---|---|
| element1 |
any n'importe |
Element / value of any kind. Élément/valeur de n'importe que type. |
Yes Oui |
| element2 |
any n'importe |
Another element / value of any kind. Autre élément/valeur de n'importe que type. |
No Non |
Returns / Renvoie
An array containing the specified elements.
Un tableau contenant les éléments spécifiés.
Description
This operator builds an array using the specified elements. The elements must be passed as parameters. The operator returns the resulting array.
Cet opérateur crée un tableau contenant les éléments spécifiés. Ces derniers doivent être passés en paramètre. L'opérateur renvoie le tableau résultant.
Exemple 1
{array( 1, 2, 3, 4, 5, 6, 7 )}
The following array will be returned: ( 1, 2, 3, 4, 5, 6, 7 ).
Le tableau suivant sera retourné: ( 1, 2, 3, 4, 5, 6, 7 )
Exemple 2
{array( 1, 2, 3, array( 4, 5, 6 ) )}
The following array will be returned: ( 1, 2, 3, ( 4, 5, 6 ) ).
Le tableau suivant sera retourné: ( 1, 2, 3, ( 4, 5, 6 ) )
Commentaires














