Changed echo to print_r