What is php variable ?
A Variable is a value, that can be change, Depending on the conditions. In other, a variable is the way of storing the information. In php we denoted or declare variable by using $ Sign.
Rules of php variable ?
php variable name must be started with any letter or underscore sign. Variable can have a sort name like a and b etc. In php the variable name cannot started with any numeric number. It support only alpha-numeric characters. But in condition of variable declaration the php variables are case sensitive. If we assign any text value in variable then use quotes around the value. PHP is a loosely type language, because we do not need to declare any datatype of any variable. PHP variable automatically converts the variable type depending on the value.
What is php scope variables ?
PHP scope variable are three types, local, global and static
what is php local variable ?
Local variable is declared only in the function. we can access the variable or variable value in function.
what is global variable ?
global variable can be declared outside from the function and only access their value from outside a function.
what is static variable ?
static variable value is not deleted after function or program is completed. it hold that value shourld the function be called again.
Thanks
Auf dieser Seite können Sie das Online-Video PHP variable - PHP Tutorial - 6 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer onballorg 01 September 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 83 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!