PHP Declaring Multiple Variables

This one is for all of you out there that think code is beautiful. This is a nice way to declare multiple variables to the same value with one clean line. I use this often when coding for E_STRICT so that I do not get a "Notice" for uninitialized variables.

PHP:
  1. $var1 = $var2 = $var3 = 0;

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • Reddit
  • Furl
  • NewsVine
  • Simpy
  • Slashdot
  • Spurl
  • StumbleUpon
  • YahooMyWeb
  • TailRank

Home | PHP | PHP Declaring Multiple Variables