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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -