Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
English Site | German Site 

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / array_fill
array_fill

array_fill

(PHP 4 >= 4.2.0)

array_fill -- Füllt ein Array mit Werten

Beschreibung

array array_fill ( int start_index, int num, mixed value)

array_fill() füllt ein Array mit num Einträgen des Wertes des value Parameters. Die Indizes des Arrays beginnen mit dem start_index Parameter.

Beispiel 1. array_fill()

$a = array_fill(5, 6, 'Banane');

$a würde mit print_r() folgende Inhalte ausgeben:
Array
(
    [5]  => Banane
    [6]  => Banane
    [7]  => Banane
    [8]  => Banane
    [9]  => Banane
    [10] => Banane
)


© 1998-2007 Gold Vision Communications All Rights Reserved.