<?php $var = array(); $var = []; $var = array(1,2,3); $var = [1,2,3]; echo $var[1]; $foo = [$var[1],$var[2]]; $foo = [ 1, 2, 3 ];
info at phpclasses dot org