logo

Crowdly

Дано три PHP-файли: // page1.php session_start(); $_SESSION['user'] = 'Iva...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Дано три PHP-файли:

// page1.php

session_start();

$_SESSION['user'] = 'Ivan';

$_SESSION['count'] = 5;

// page2.php

$_SESSION['count']++;

echo $_SESSION['count'];

// page3.php

session_start();

unset($_SESSION['user']);

echo $_SESSION['count'];

Питання:

А) Що виведе page2.php? Поясніть чому.

Б) Що виведе page3.php? Поясніть чому.

В) Що трапиться, якщо забути session_start() на page3.php?

More questions like this

Want instant access to all verified answers on moodle.elct.lnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!