πŸ“Š PHP
Q. What will be the output?
Code:
session_start();
$_SESSION['x'] = 5;
echo session_id() ? 'Started' : 'Not Started';
  • (A) Started
  • (B) Not Started
  • (C) Error
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (A) Started

Explanation: session_id() returns value when session is active.

Explanation by: Roshan
session_id() returns value when session is active.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
93%
Success Rate