code_junkie

Object Oriented PHP

Nov 12th, 2011
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. class Box
  3. {
  4. var $contents;
  5.  
  6. function Box($contents) {
  7. $this->contents = $contents;
  8. }
  9.  
  10. function get_whats_inside() {
  11. return $this->contents;
  12. }
  13. }
  14.  
  15. ?>
  16.  
  17. $this->contents = $contents;
  18. return $this->contents;
  19.  
  20. $this->contents = $contents;
  21. return $this->contents;
Add Comment
Please, Sign In to add comment