Practice mode PHP

Which PHP function must be called before session variables can be used in a script?

Correct answer A. session_start()

Explanation

session_start() creates a new session or resumes the existing one, making the $_SESSION array available for storing and reading values.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.