• +91 9723535972
  • info@interviewmaterial.com

PHP Interview Questions and Answers

Question - What is the difference between $message and $$message?

Answer - 1) - $message is a simple variable whereas $$message is a reference variable. Example: $user = 'bob' is equivalent to $holder = 'user'; $$holder = 'bob'; 2) - They are both variables. But $message is a variable with a fixed name. $$message is a variable who's name is stored in $message. For example, if $message contains "var", $$message is the same as $var.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners