Skip to content

Instantly share code, notes, and snippets.

@nikita2206
Created February 19, 2013 18:42
Show Gist options
  • Select an option

  • Save nikita2206/4988665 to your computer and use it in GitHub Desktop.

Select an option

Save nikita2206/4988665 to your computer and use it in GitHub Desktop.

Revisions

  1. nikita2206 created this gist Feb 19, 2013.
    20 changes: 20 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    <?php

    class Foo
    {

    public bar()
    {
    echo "bar\n";
    }

    public function fooBar()
    {
    echo "fooBar\n";
    }

    }

    $i = new Foo;
    $i->bar(); // outputs "bar\n"
    $i->fooBar(); // outputs "fooBar\n"