in PHP - what is the difference in use of ' ' and " " -


possible duplicate:
difference between single quote , double quote string in php

hi all

i new php , wanted know difference in use of ' ' , " " ?

thanks

double quotes evaluate content of string, single quotes don't.

$var = 123; echo 'this value of var: $var'; // output: value of var: $var echo "this value of var: $var"; // output: value of var: 123 

it perfomance issue too, 'cause evaluation time affects interpreter, nowadays current (minimum) hardware it's not issue anymore.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -