WHITESPACE|4|

|
PHP_TOKEN|1|<|
PHP_TOKEN|1|?|
PHP_STRING|3|php|
WHITESPACE|5| 

|
PHP_COMMENT_START|2|/*|
PHP_COMMENT|36| pretty nifty object oriented code! |
PHP_COMMENT_END|2|*/|
WHITESPACE|4|

|
PHP_CLASS|5|class|
WHITESPACE|1| |
PHP_STRING|4|user|
WHITESPACE|1| |
PHP_CURLY_OPEN|1|{|
WHITESPACE|4|
  |
PHP_PUBLIC|6|public|
WHITESPACE|1| |
PHP_VARIABLE|11|$first_name|
PHP_TOKEN|1|,|
PHP_VARIABLE|12|$family_name|
PHP_TOKEN|1|,|
PHP_VARIABLE|8|$address|
PHP_TOKEN|1|,|
PHP_VARIABLE|10|$phone_num|
PHP_SEMICOLON|1|;|
WHITESPACE|4|
  |
PHP_FUNCTION|8|function|
WHITESPACE|1| |
PHP_STRING|7|display|
PHP_TOKEN|1|(|
PHP_TOKEN|1|)|
WHITESPACE|4|
  |
PHP_CURLY_OPEN|1|{|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|20|"User information\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|22|"----------------\n\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|17|"First name:\t  "|
PHP_TOKEN|1|.|
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|10|first_name|
PHP_TOKEN|1|.|
PHP_CONSTANT_ENCAPSED_STRING|4|"\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|18|"Family name:\t  "|
PHP_TOKEN|1|.|
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|11|family_name|
PHP_TOKEN|1|.|
PHP_CONSTANT_ENCAPSED_STRING|4|"\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|14|"Address:\t  "|
PHP_TOKEN|1|.|
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|address|
PHP_TOKEN|1|.|
PHP_CONSTANT_ENCAPSED_STRING|4|"\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|14|"Phone:\t\t  "|
PHP_TOKEN|1|.|
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|9|phone_num|
PHP_TOKEN|1|.|
PHP_CONSTANT_ENCAPSED_STRING|4|"\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_ECHO|4|echo|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|6|"\n\n"|
PHP_SEMICOLON|1|;|
WHITESPACE|4|
  |
PHP_CURLY_CLOSE|1|}|
WHITESPACE|4|
  |
PHP_FUNCTION|8|function|
WHITESPACE|1| |
PHP_STRING|10|initialize|
PHP_TOKEN|1|(|
PHP_VARIABLE|11|$first_name|
PHP_TOKEN|1|,|
PHP_VARIABLE|12|$family_name|
PHP_TOKEN|1|,|
PHP_VARIABLE|8|$address|
PHP_TOKEN|1|,|
PHP_VARIABLE|10|$phone_num|
PHP_TOKEN|1|)|
WHITESPACE|4|
  |
PHP_CURLY_OPEN|1|{|
WHITESPACE|6|
    |
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|10|first_name|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_VARIABLE|11|$first_name|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|11|family_name|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_VARIABLE|12|$family_name|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|address|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_VARIABLE|8|$address|
PHP_SEMICOLON|1|;|
WHITESPACE|6|
    |
PHP_VARIABLE|5|$this|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|9|phone_num|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_VARIABLE|10|$phone_num|
PHP_SEMICOLON|1|;|
WHITESPACE|4|
  |
PHP_CURLY_CLOSE|1|}|
WHITESPACE|2|
|
PHP_CURLY_CLOSE|1|}|
PHP_SEMICOLON|1|;|
WHITESPACE|6|


|
PHP_FUNCTION|8|function|
WHITESPACE|1| |
PHP_STRING|4|test|
PHP_TOKEN|1|(|
PHP_VARIABLE|2|$u|
PHP_TOKEN|1|)|
WHITESPACE|2|
|
PHP_CURLY_OPEN|1|{|
WHITESPACE|2|  |
PHP_COMMENT_START|2|/*|
PHP_COMMENT|35| one can pass classes as arguments |
PHP_COMMENT_END|2|*/|
WHITESPACE|4|
  |
PHP_VARIABLE|2|$u|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|display|
PHP_TOKEN|1|(|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|4|
  |
PHP_VARIABLE|2|$t|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_VARIABLE|2|$u|
PHP_SEMICOLON|1|;|
WHITESPACE|4|
  |
PHP_VARIABLE|2|$t|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|address|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_CONSTANT_ENCAPSED_STRING|16|"New address..."|
PHP_SEMICOLON|1|;|
WHITESPACE|4|
  |
PHP_RETURN|6|return|
WHITESPACE|1| |
PHP_VARIABLE|2|$t|
PHP_SEMICOLON|1|;|
WHITESPACE|2|  |
PHP_COMMENT_START|2|/*|
PHP_COMMENT|39| and also return them as return values |
PHP_COMMENT_END|2|*/|
WHITESPACE|2|
|
PHP_CURLY_CLOSE|1|}|
WHITESPACE|4|

|
PHP_VARIABLE|6|$user1|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_NEW|3|new|
WHITESPACE|1| |
PHP_STRING|4|user|
PHP_SEMICOLON|1|;|
WHITESPACE|2|
|
PHP_VARIABLE|6|$user2|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_NEW|3|new|
WHITESPACE|1| |
PHP_STRING|4|user|
PHP_SEMICOLON|1|;|
WHITESPACE|4|

|
PHP_VARIABLE|6|$user1|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|10|initialize|
PHP_TOKEN|1|(|
PHP_CONSTANT_ENCAPSED_STRING|6|"Zeev"|
PHP_TOKEN|1|,|
PHP_CONSTANT_ENCAPSED_STRING|9|"Suraski"|
PHP_TOKEN|1|,|
PHP_CONSTANT_ENCAPSED_STRING|38|"Ben Gourion 3, Kiryat Bialik, Israel"|
PHP_TOKEN|1|,|
PHP_CONSTANT_ENCAPSED_STRING|16|"+972-4-8713139"|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|2|
|
PHP_VARIABLE|6|$user2|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|10|initialize|
PHP_TOKEN|1|(|
PHP_CONSTANT_ENCAPSED_STRING|6|"Andi"|
PHP_TOKEN|1|,|
PHP_CONSTANT_ENCAPSED_STRING|9|"Gutmans"|
PHP_TOKEN|1|,|
PHP_CONSTANT_ENCAPSED_STRING|15|"Haifa, Israel"|
PHP_TOKEN|1|,|
PHP_CONSTANT_ENCAPSED_STRING|16|"+972-4-8231621"|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|2|
|
PHP_VARIABLE|6|$user1|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|display|
PHP_TOKEN|1|(|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|2|
|
PHP_VARIABLE|6|$user2|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|display|
PHP_TOKEN|1|(|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|4|

|
PHP_VARIABLE|4|$tmp|
WHITESPACE|1| |
PHP_TOKEN|1|=|
WHITESPACE|1| |
PHP_STRING|4|test|
PHP_TOKEN|1|(|
PHP_VARIABLE|6|$user2|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|2|
|
PHP_VARIABLE|4|$tmp|
PHP_OBJECT_OPERATOR|2|->|
PHP_STRING|7|display|
PHP_TOKEN|1|(|
PHP_TOKEN|1|)|
PHP_SEMICOLON|1|;|
WHITESPACE|4|

|
PHP_CLOSETAG|4|?>
|
