laith jasser 0 Posted March 27, 2013 Report Share Posted March 27, 2013 PHP for the Web, Fourth Edition page 186 script 7.4 continue i find mistakes for foreach ($books as $key => $value) { print "<p>$key: $value</p>\n"; } it need print_r solution foreach ($book as $key => $value) { print $key; print_r($value); } Quote Link to post Share on other sites
Antonio Conte 426 Posted March 27, 2013 Report Share Posted March 27, 2013 Print_r() is dubug functionality. Don't use it in production code. That code looks good to me btw. Welcome to the forum, btw. Quote Link to post Share on other sites
laith jasser 0 Posted March 27, 2013 Author Report Share Posted March 27, 2013 thanks... i tried to do that without print_r, but I falied and where the btw forum .. please send me the link ... Quote Link to post Share on other sites
Antonio Conte 426 Posted March 27, 2013 Report Share Posted March 27, 2013 Haha. This is the forum. Again, welcome. That code should definitely work. What's in the variable $books for you? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.