You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
514 B

28 years ago
26 years ago
28 years ago
  1. <?
  2. class foo {
  3. function foo($a,$b) {
  4. $a *= 3;
  5. return $a+$b;
  6. }
  7. function bar(&$blah, $foobar=7) {
  8. $foobar += 19;
  9. }
  10. function hello_world() {
  11. return "Hello, World!";
  12. }
  13. function print_string($str) {
  14. print "$str\n";
  15. return 666;
  16. }
  17. var $foo;
  18. var $bar="this is a test....";
  19. };
  20. class bar {
  21. function foo($a,$b) {
  22. $a *= 3;
  23. return $a+$b;
  24. }
  25. function bar(&$blah, $foobar=7) {
  26. $foobar += 19;
  27. }
  28. var $foo;
  29. var $bar="this is a test...";
  30. };
  31. $b = new foo;
  32. $a = &$b;
  33. $b->asd = 5;
  34. print $b->asd;