>>50
$a = array("key1"=>"value1","key2"=>"value2");
$first = reset($a);
で最初の要素が取れます。