note 111735 deleted from keyword.class by sobak
| From: | sobak@php.net | Date: | Sat, 12 Nov 2016 09:36:57 +0000 |
| Subject: | note 111735 deleted from keyword.class by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207081@lists.php.net to get a copy of this message | ||
Note Submitter: anthonymccuen at yahoo dot com
----
You can also use "var" to declare multiple public instance variables like in C:
int main(int *argc, const char *argv[]) {
int a, b, c, d, e, f;
a = 50;
// blah blah blah code here
// ...
return 0;
}
Same as PHP:
<?php
class MyClass {
var $myvar, $anotherVar, $something, $str;
}
?>