We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9967c7d commit 2ee351dCopy full SHA for 2ee351d
test.php
@@ -1,19 +1,14 @@
1
<?php
2
-
3
-class my {
4
- public function method() {
5
- echo "Hello";
+class phpdbg {
+ public function isGreat($greeting = null) {
+ printf(
+ "%s: %s\n", __METHOD__, $greeting);
6
return $this;
7
}
8
9
10
-function test2() {
11
- echo "Hello World 2\n";
12
-}
13
14
15
-$my = new my();
16
-var_dump($my->method());
+$dbg = new phpdbg();
17
18
-return true;
+var_dump(
+ $dbg->isGreat("PHP Rocks !!"));
19
?>
tutorials/show-broken.png
71.1 KB
0 commit comments