PHP variable - PHP Tutorial - 6

Published: 01 September 2016
on channel: 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


On this page of the site you can watch the video online PHP variable - PHP Tutorial - 6 with a duration of hours minute second in good quality, which was uploaded by the user onballorg 01 September 2016, share the link with friends and acquaintances, this video has already been watched 83 times on youtube and it was liked by 0 viewers. Enjoy your viewing!