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

πŸ‘οΈ
23
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
88%
Success Rate