PHP variable - PHP Tutorial - 6

Pubblicato il: 01 settembre 2016
sul canale di: onballorg
83
0

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


In questa pagina del sito puoi guardare il video online PHP variable - PHP Tutorial - 6 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato onballorg 01 settembre 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 83 volte e gli è piaciuto 0 spettatori. Buona visione!