note 130033 added to language.oop5.basic
| From: | pepgeorge@gmail.com | Date: | Mon, 17 Feb 2025 12:35:42 +0000 |
| Subject: | note 130033 added to language.oop5.basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221857@lists.php.net to get a copy of this message | ||
IF you want to create a class of a object yo need to do this:
<?php
class NameClass {
public int $id;
public string $name;
public function create ($id, $name)
{
$this->id =$id;
$this->name = $name;
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 83.37.203.28)
----
Manual Page -- https://php.net/manual/en/language.oop5.basic.php
Edit -- https://main.php.net/note/edit/130033
Del: integrated -- https://main.php.net/note/delete/130033/integrated
Del: useless -- https://main.php.net/note/delete/130033/useless
Del: bad code -- https://main.php.net/note/delete/130033/bad+code
Del: spam -- https://main.php.net/note/delete/130033/spam
Del: non-english -- https://main.php.net/note/delete/130033/non-english
Del: in docs -- https://main.php.net/note/delete/130033/in+docs
Del: other reasons-- https://main.php.net/note/delete/130033
Reject -- https://main.php.net/note/reject/130033
Search -- https://main.php.net/manage/user-notes.php