Should I use "" (quotations) While defining variable? But With/Without Works
<p>I have just started learning PHP, and here's my first doubt...</p>

<p>Both of these work:</p>

<pre><code>&lt;?php
$function1 = "Aahan";
print "Hi, $function1";
?&gt;
</code></pre>

<p>and</p>

<pre><code>&lt;?php
$function2 = Aahan;
print "Hi, $function2";
?&gt;
</code></pre>

<p>See the difference? In the second example I didnt use the "" (quotation marks) for the variable string. But it still works.</p>

<p>Also, the stupid author of the book (which I wont name), uses "" in some examples and doesnt use them in some, without explanation. So, what should I think? Either way is okay or what do you advise?</p>

<p>EDIT: Sorry guys, the author is a good one. I misunderstood this string <code>$x = 3;</code>, and started checking out the above examples. Just realized that constants don't need quotes. Sorry again.</p>

<p><strong>EDIT-2: it doesn't show me any error like you all have mentioned. How do I make it show the errors? or is it something wrong with my server itself? (I dont think so)</strong></p>
