PHP MYSQL LESSON 4_ VARIABLES IN PHP

6 просмотров 16.12.2017 00:10:39

Описание

PHP Variables In this tutorial you will learn how store information in a variable in PHP. What is Variable in PHP Variables are used to store data, like string of text, numbers, etc. Variable values can change over the course of a script. Here're some important things to know about variables: In PHP, a variable does not need to be declared before adding a value to it. PHP automatically converts the variable to the correct data type, depending on its value. After declaring a variable it can be reused throughout the code. The assignment operator (=) used to assign value to a variable. In PHP variable can be declared as: $var_name = value;

Комментарии

Теги:
MYSQL, LESSON, VARIABLES