note 105283 added to language.types
| From: | ahmadsajid1989 at yahoo dot com | Date: | Sun, 07 Aug 2011 21:40:06 +0000 |
| Subject: | note 105283 added to language.types | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182300@lists.php.net to get a copy of this message | ||
@ Jeffery
you must encapsulate (PPP) other wise it will return an
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION
so need to add
<?php
class Person
{
public $firstName; // a PHP String
public $middleName; // a PHP String
public $lastName; // a PHP String
public $age; // a PHP Integer
public $hasDriversLicense; // a PHP Boolean
}
?>
just to avoid that error
----
Server IP: 69.147.83.197
Probable Submitter: 123.49.24.156
----
Manual Page -- http://www.php.net/manual/en/language.types.php
Edit -- https://master.php.net/note/edit/105283
Del: integrated -- https://master.php.net/note/delete/105283/integrated
Del: useless -- https://master.php.net/note/delete/105283/useless
Del: bad code -- https://master.php.net/note/delete/105283/bad+code
Del: spam -- https://master.php.net/note/delete/105283/spam
Del: non-english -- https://master.php.net/note/delete/105283/non-english
Del: in docs -- https://master.php.net/note/delete/105283/in+docs
Del: other reasons-- https://master.php.net/note/delete/105283
Reject -- https://master.php.net/note/reject/105283
Search -- https://master.php.net/manage/user-notes.php