comment() inline_delimiter()ident(items)operator([)local_variable($artnr)operator(]) operator(+=) local_variable($num)operator(;) operator(}) comment(// Take $num articles of $artnr out of the cart) reserved(function) function(remove_item)operator(()local_variable($artnr)operator(,) local_variable($num)operator(\)) operator({) reserved(if) operator(()local_variable($this)operator(->)ident(items)operator([)local_variable($artnr)operator(]) operator(>) local_variable($num)operator(\)) operator({) local_variable($this)operator(->)ident(items)operator([)local_variable($artnr)operator(]) operator(-=) local_variable($num)operator(;) reserved(return) pre_constant(true)operator(;) operator(}) reserved(elseif) operator(()local_variable($this)operator(->)ident(items)operator([)local_variable($artnr)operator(]) operator(==) local_variable($num)operator(\)) operator({) predefined(unset)operator(()local_variable($this)operator(->)ident(items)operator([)local_variable($artnr)operator(])operator(\))operator(;) reserved(return) pre_constant(true)operator(;) operator(}) reserved(else) operator({) reserved(return) pre_constant(false)operator(;) operator(}) operator(}) operator(}) inline_delimiter(?>) inline_delimiter(operator(\))operator(;) reserved(var) local_variable($name) operator(=) local_variable($firstname)operator(;) reserved(var) local_variable($owner) operator(=) string operator(.) stringoperator(;) comment(/* Arrays containing constant values will, though. */) reserved(var) local_variable($items) operator(=) predefined(array)operator(()stringoperator(,) stringoperator(\))operator(;) operator(}) comment(/* This is how it should be done. */) reserved(class) class(Cart) operator({) reserved(var) local_variable($todays_date)operator(;) reserved(var) local_variable($name)operator(;) reserved(var) local_variable($owner)operator(;) reserved(var) local_variable($items) operator(=) predefined(array)operator(()stringoperator(,) stringoperator(\))operator(;) reserved(function) function(Cart)operator(()operator(\)) operator({) local_variable($this)operator(->)ident(todays_date) operator(=) predefined(date)operator(()stringoperator(\))operator(;) local_variable($this)operator(->)ident(name) operator(=) predefined($GLOBALS)operator([)stringoperator(])operator(;) comment(/* etc. . . */) operator(}) operator(}) inline_delimiter(?>) inline_delimiter(operator(;) predefined(echo) predefined(get_class)operator(()local_variable($this)operator(\))operator(;) predefined(echo) stringoperator(;) operator(}) reserved(else) operator({) predefined(echo) stringoperator(;) operator(}) operator(}) operator(}) reserved(class) class(B) operator({) reserved(function) function(bar)operator(()operator(\)) operator({) constant(A)operator(::)ident(foo)operator(()operator(\))operator(;) operator(}) operator(}) local_variable($a) operator(=) reserved(new) constant(A)operator(()operator(\))operator(;) local_variable($a)operator(->)ident(foo)operator(()operator(\))operator(;) constant(A)operator(::)ident(foo)operator(()operator(\))operator(;) local_variable($b) operator(=) reserved(new) constant(B)operator(()operator(\))operator(;) local_variable($b)operator(->)ident(bar)operator(()operator(\))operator(;) constant(B)operator(::)ident(bar)operator(()operator(\))operator(;) inline_delimiter(?>)