? < PHP
// add an element to $ dirs [] = ' 1location ' ;
// add an element again $ dirs [] = ' 2location ' ;
// add a third element $ dirs [] = ' 3location ' ;
/ / printing print_r ($ dirs); ?>
Export
Array ( [0] => 1location [1] => 2location [2] => 3location )