ok, lets say i have:

$array = array(1, 2, 3);

is there a php command function that i can use that will let me have teh first item in teh array become varible $year, teh second item $mnth, and teh last item be $date?

ok, lets say i have:

$array = array(1, 2, 3);

is there a php command function that i can use that will let me have teh first item in teh array become varible $year, teh second item $mnth, and teh last item be $date?

list($year, $mnth, $date) = $array;

See here:

http://us2.php.net/manual/en/function.list.php

-Tony

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.