What to choose: $someVar or $some_var?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
What to choose: $someVar or $some_var?
by | 9 views

7 Answers

0 like 0 dislike
Toss a coin.
This theme will give no more information, but flooding will be a lot.
by
0 like 0 dislike
$someVar; $object->someMethod(); $params['some_param'];
by
0 like 0 dislike
We made $someVar, but the naming like $some_var starchy quite rare, except in scripts.
by
0 like 0 dislike
by
0 like 0 dislike
$someVar — class option.
$some_var is an internal variable inside the method.
by
0 like 0 dislike
Depends on the language of the framework. Everywhere their foundations.
by
0 like 0 dislike
Depends on what you are working with. For example, in Zend framework it is customary to use camelCaps [proof].
But by and large it does not matter, the main thing you always follow the accepted rules are the same.
by

No related questions found

110,608 questions
257,186 answers
0 comments
27,901 users