diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index 2946a0b8c7..e5cbac98fa 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -1,5 +1,5 @@ - + The Basics @@ -95,11 +95,11 @@ object(SimpleClass)#1 (1) { - - extend + + extends A class can inherit methods and members of another class by using the - extend keyword in the declaration. It is not possible to extend multiple + extends keyword in the declaration. It is not possible to extend multiple classes, a class can only inherit one base class. diff --git a/language/oop5/exceptions.xml b/language/oop5/exceptions.xml index 4f21002a44..d8b7be0039 100644 --- a/language/oop5/exceptions.xml +++ b/language/oop5/exceptions.xml @@ -1,5 +1,5 @@ - + Exceptions @@ -197,6 +197,7 @@ try { // Continue execution var_dump($o); echo "\n\n"; +?> ]]> diff --git a/language/oop5/iterations.xml b/language/oop5/iterations.xml index dbc55c168e..8bb70d1a21 100644 --- a/language/oop5/iterations.xml +++ b/language/oop5/iterations.xml @@ -1,5 +1,5 @@ - + Object Iteration @@ -47,7 +47,7 @@ var3 => value 3 As the output shows, the foreach iterated through each public variable that is defined. To take it a step further you can implement one of PHP 5's - internal named + internal interface named Iterator. This allows the object to decide what and how the object will be iterated.