]> granicus.if.org Git - php/commitdiff
show break screen image
authorkrakjoe <joe.watkins@live.co.uk>
Wed, 13 Nov 2013 09:17:58 +0000 (09:17 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Wed, 13 Nov 2013 09:17:58 +0000 (09:17 +0000)
test.php
tutorials/show-broken.png [new file with mode: 0644]

index 0f240e1618fa4c8345be8836f1b0aa3cf57c9806..a9743f42137d8a630c0eb8e8f6c54e360949e190 100644 (file)
--- a/test.php
+++ b/test.php
@@ -1,19 +1,14 @@
 <?php
-
-class my {
-    public function method() {
-        echo "Hello";
+class phpdbg {
+    public function isGreat($greeting = null) {
+        printf(
+            "%s: %s\n", __METHOD__, $greeting);
         return $this;
     }
 }
 
-function test2() {
-    echo "Hello World 2\n";
-}
-
-
-$my = new my();
-var_dump($my->method());
+$dbg = new phpdbg();
 
-return true;
+var_dump(
+    $dbg->isGreat("PHP Rocks !!"));
 ?>
diff --git a/tutorials/show-broken.png b/tutorials/show-broken.png
new file mode 100644 (file)
index 0000000..4964978
Binary files /dev/null and b/tutorials/show-broken.png differ