Try this.
print "<body onload=\"start([31.5], [-97.8], ['10'], ['Merrill'],
['Non-Exempt'] )\">";

On Tue, Aug 16, 2011 at 2:53 PM, Merrill Oveson <[email protected]> wrote:

> phpers:
>
> This works:
>
>  print "<body onload=\"start( new Array(32.182208,32.2),new
> Array(-97.421321,-96.8), new Array('3446','10'), new
> Array('Bob','Merrill'), new Array('Exempt','Non-Exempt') )\">";
>
> this doesn't:
>
>  print "<body onload=\"start( new Array(31.5), new Array(-97.8), new
> Array('10'), new Array('Merrill'), new Array('Non-Exempt') )\">";
>
>
> ok, ok, I know the rule, so this should work but it doesn't:
>
> print "<body onload=\"start( Array[31.5], Array[-97.8], Array['10'],
> Array['Merrill'], Array['Non-Exempt' )\">";
>
>
> So what's the proper syntax?  Here's my goal:
>
> print "<body onload=\"start( new Array($lat), new Array($long), new
> Array($reg), new Array($owner), new Array($exemption) )\">";
>
> where $lat, $long, $reg, $owner, $exemption can be arrays of only one
> element.
>
> Thanks
>
> Merrill
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to