Gary wrote: > Hi All, > I am not too bad at building arrays in php but I need to convert a > javascript form into php. How wuld I conver the small snippit here? > > var d = new Array(), l = new Array(); > l[0] = new Array(1, -360, 1, "CHICAGO"); > l[1] = new Array(1, -420, 1, "EDMONTON"); > l[2] = new Array(1, -540, 1, "FAIRBANKS"); > > TIA > Gary
<?php $l = array(); $d = array(); $l[] = array(1, -360, 1, "CHICAGO"); $l[] = array(1, -420, 1, "EDMONTON"); $l[] = array(1, -540, 1, "FAIRBANKS"); ?> The code won't be much use without knowing how it will be used though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php