top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

what is the difference between name and $name in php

+1 vote
92 views

What is required of a software engineer?
what is the difference between 'name' and '$name' in php

posted Nov 4, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

$name is a variable which can contain any value whatever you assign to it i.e.

$name = "QueryHome"; 

Now the value of $name is "QueryHome" and in course of the program we can change it to something else we and when we need it.

But name is a constant it can carry a value but that value can not be changed.i.e.

define('name', 'Hello world');
answer Nov 5, 2016 by Salil Agrawal
Thanks man
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...