diff options
author | Andrey Hristov <andrey@php.net> | 1999-07-08 21:56:19 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 1999-07-08 21:56:19 +0000 |
commit | 743935ca8eb0c43bd67bf0cd29fd3e70ce494f94 (patch) | |
tree | 1da929407eda2a5fe09b5c1e7f1b16dae9db5309 /tests/foo4 | |
parent | cef4df1fee046105ab35f47c152d39bf16a55a07 (diff) | |
download | php-git-743935ca8eb0c43bd67bf0cd29fd3e70ce494f94.tar.gz |
More cleanup.
Diffstat (limited to 'tests/foo4')
-rw-r--r-- | tests/foo4 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/foo4 b/tests/foo4 new file mode 100644 index 0000000000..c242debf97 --- /dev/null +++ b/tests/foo4 @@ -0,0 +1,41 @@ +<? + +class foo { + function foo($a,$b) { + $a *= 3; + return $a+$b; + } + function bar(&$blah, $foobar=7) { + $foobar += 19; + } + + function hello_world() { + return "Hello, World!"; + } + + function print_string($str) { + print "$str\n"; + return 666; + } + var $foo; + var $bar="this is a test..."; +}; + +class bar { + function foo($a,$b) { + $a *= 3; + return $a+$b; + } + function bar(&$blah, $foobar=7) { + $foobar += 19; + } + + var $foo; + var $bar="this is a test..."; +}; + + +$b = new foo; +$a = &$b; +$b->asd = 5; +print $b->asd; |