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
En esta página del sitio puede ver el video en línea PHP variable - PHP Tutorial - 6 de Duración hora minuto segunda en buena calidad , que subió el usuario onballorg 01 septiembre 2016, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 83 veces y le gustó 0 a los espectadores. Disfruta viendo!