hi,
i would like to print a specific range of array element using foreach() function.
let say i have this array,
$topic_rel = array(0=>'start', 1, 2, 3, 4=>'four', 5, 6, 7, 8,
9, 10=>'ten', 12, 13, 14, 15=>'end'):
now how would i print the key and value of an elements from starting key = 5
and upto key = 12, using foreach function?
i know i can do this in for() and while() but i want it to iterate using foreach().
Thank you very in advance.