RUVIDEO
Поделитесь видео 🙏

PHP variables

📁 Обучение 👁️ 16 📅 30.11.2023

Welcome to PHP programming,
Before creating a variable in PHP, please keep the following points in mind

1) In PHP variables are used for storing values like text strings , numbers or arrays.

2) When the variable is set it can be used any number of times in a script.

3) All variables in PHP start with $ sign symbol.

4) Correct way of setting a variable in PHP is
$var_name = value

5) Since PHP is a loosely typed language, a variable does not need to be declared before being set.

6) PHP automatically converts the variable to the correct data type, depending on how they are set.

7) In PHP the variable is declared automatically when you use it.

RULES FOR NAMING A VARIABLE

1) A variable name must start with a letter or a underscore "_".

2) A variable name can only contain alpha-numeric characters and underscores (a-z,0-9, & _).

3) A variable name should not contain spaces, if a variable name is more than one word, it should be seperated with underscore or with capitallization.

NUMERIC VARIABLES

1) Numeric variables are used for values that contains numeric values.

$numbera = 16
$numberb = 25.66

Let us write a PHP program that sends the value storeed in the numeric variables to the browser.

Save it in our server i.e., xampp/htdocs

Run the file using the url http://localhost/phpnumvariable.php to the browser

This how the numeric variables work in PHP #script.

STRING VARIABLES

1) String variables are used for values that contain character strings.

$txt1 = "Hello"
$txt2 = "Welcome World"

Let us write a PHP program that sends the value stored in the character variables to the browser.

Save it in our server i.e., xampp/htdocs

Run the file using the url http://localhost/phpstringvariable.php in the browser.

This is how the string variables work in #PHP script.

Thank You........

For PHP Project source code kindly refer www.studentprojects.live

Do you have Any queries? Contact us in Whatsapp :- +91-9972853368

#studentprojects #phpcode

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «PHP variables», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.