skip to main | skip to sidebar

Red Monkey Findings

Saturday, 22 March 2008

Printing Arrays in PHP

always use print_r(); to debug an array. I guess echo and print just produce array.

When displaying stuff in web pages use a foreach loop.
Posted by Michele at 13:53
Labels: PHP

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (35)
    • ►  May (11)
    • ►  April (6)
    • ▼  March (17)
      • Google Maps on the fly
      • Javascript: Binding and Scope
      • Printing Arrays in PHP
      • VirtualHosts in Apache, Leopard
      • Unix Aliases
      • MySQL wrapper class
      • SQLite
      • Useful Links
      • Smarty: A PHP template Engine
      • PHP: the ? operator
      • Casting in PHP
      • Unix pipes and other commands
      • MySQL basics
      • Hello Michele!
      • .inc files and libraries
      • mod_rewrite
      • Apache settings
    • ►  January (1)

Contributors

  • Michele
  • Paolo