code_junkie

__construct() vs SameAsClassName() for constructor in PHP

Nov 11th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. class Foo {
  2. function __construct(){
  3. //do stuff
  4. }
  5. }
  6.  
  7. class Foo {
  8. function Foo(){
  9. //do stuff
  10. }
  11. }
Add Comment
Please, Sign In to add comment