Printing an array in php
===

Now I understand that you cant just use echo to print the contents of an array and you have to use foreach but for some reason this is not working. Any ideas?

    $rows = $stmt->fetchAll();
    foreach ($rows as $key=>$row)
           {
            echo "My value at $key is $row";
           }
    }

Output:

    My value at 0 is ArrayMy value at 1 is ArrayMy value at 2 is Array