PHP variable - PHP Tutorial - 6

Publié le: 01 septembre 2016
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne PHP variable - PHP Tutorial - 6 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur onballorg 01 septembre 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 83 fois et il a aimé 0 téléspectateurs. Bon visionnage!