For clairifying you can add a string to a variable then add other variables as such;
var one = "test", super,apple,pear,cardboard
The string "test" will be assigned to the variable one as well; super, apple, pear, cardboard will also be created variables ?
The variables will be created, but will be undefined. See Chrome watched variables on breakpoint:
0
diafol
Personally, I declare variables individually each on their own line - clarity over brevity. You can always minimize and gzip the production version anyhow.
I try to create a simple OOP PHP that shows an error:
class_lib.php
<?php
class person {
var $name;
function __constructor($person_name){
echo "Initialize class";
}
function set_name($new_name){
$this->name($new_name);
} ...