Interviewer And Interviewee Guide

Junior Developer PHP Interview Question:

Explain what is the difference between $var and $$var?

Submitted by: Muhammad
They are both variables. But $var is a variable with a fixed name. $$var is a variable who's name is stored in $var. For example, if $var contains "message", $$var is the same as $message.
Submitted by: Muhammad

Read Online Junior Developer PHP Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.