in reply to how to print out side of for loop?
Did you read and understand the responses you got to how to print out side of foreach loop($k1 $a{$k1}) ??