cc-licensed by sexybiggetje.nl
  • About

Use normal accessor and mutator functions in PHP

By Martijn de Boer On July 11, 2010 · Leave a Comment

PHP recommends making accessor/mutator functions available in a java style manner. This means that you will have to use $myObjects->getMyProperty(); every time you need to. To improve readability and make us type a bit less, you’d obviously just want to use $myObjects->myProperty.
The following code makes this possible by using PHP’s magic functions

Continue Reading →
  • Categories

    • artwork
    • code
  • Articles

    • January 2011
    • December 2010
    • July 2010
  • Calendar

    February 2012
    M T W T F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Meta

    • Log in
    • Entries (RSS)

cc-licensed by sexybiggetje.nl

  • About
© 2011 cc-licensed by sexybiggetje.nl
Platform by PageLines