blob: a2d787528951246a59aef6b757e40100c464b2c5 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | <?php
class Foo {
  public $aMemberVar = 'aMemberVar Member Variable';
  public $aFuncName = 'aMemberFunc';
  private $anotherVar = 'xxx';
  function aMemberFunc() {
    return 'Inside `aMemberFunc()`';
  }
}
$foo = new Foo;
$s = "asdf ";
$s .= $foo->aMemberFunc();
$s .= " xxx";
//$s .= $foo->anotherVar;
$s .= "\n";
echo $s;
$x = 2+3;
echo $x;
?>
 |