oop - Why we declare some variables in PHP as like "$_variablename"...? -
this question has answer here:
why declare variables in php $_variablename
?
does _
define something?
please me clear up, thanks.
it's naming convention.
from pear manual on naming conventions:
private class members preceded single underscore. example:
$_status
Comments
Post a Comment