Update function.php

Add print_array() method