Fixed a typo and some padding in example.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307518 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Shein Alexey 2011-01-16 18:57:05 +00:00
parent dda9f4e1d0
commit c1e20705f5

View file

@ -556,7 +556,7 @@ class Foo
}
}
echo Foo::$variable; // This prints 'static propery'. It does need a $variable in this scope.
echo Foo::$variable; // This prints 'static property'. It does need a $variable in this scope.
$variable = "Variable";
Foo::$variable(); // This calls $foo->Variable() reading $variable in this scope.
@ -700,7 +700,7 @@ class Cart
const PRICE_MILK = 3.00;
const PRICE_EGGS = 6.95;
protected $products = array();
protected $products = array();
public function add($product, $quantity)
{