Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2.  
  3. class display {
  4. public static function error(string $message) {
  5. ...<render message>...
  6. }
  7. }
  8.  
  9. ...
  10.  
  11. if ($problem) {
  12. display::error("Houston, we've got a problem.");
  13. }
  14.  
  15. <?php
  16.  
  17. class display {
  18. public function error(string $message) {
  19. ...<render message>...
  20. }
  21. }
  22.  
  23. ...
  24.  
  25. if ($problem) {
  26. $d = new display;
  27. $d->error("Houston, we've got a problem.");
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement