Associative arrays in PHP are basically the equivalent of structures in 
CF.  So, in CFSCRIPT...

item = structnew();
item.level = "level 12";
item.ecs = "something else";
// alternate syntax
item["dn"] = "third data";

and so forth.

--Ben

Charles Heizer wrote:
> Hello,
> If I wanted to do a multi-valued array in php I would initialize the 
> array like this, how would I do this in ColdFusion?
> 
> Thanks,
> - Charles
> 
> PHP Example --
> $item = array(
>                 'level'=> $level,
>                 'ecs' => $expanded,
>                 'dn'=> $dn,
>                 'rdn'=> $rdn[0],
>                 'icon'=> $icon,
>       );


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190487
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to