What is the Diff. Between echo() and Print() in PHP?
Answer Posted / binoyav
In answer #10 the following section is wrong
"
echo evaluate the string before send the output just like this
$a=10
echo "Value is $a"
output:- Value is 10
print 'Value is $a'
output:- Value is $a "
If we give double quotes instead of single quote this will work.
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What is the difference between php and javascript?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
How to redirect https to http url through .htaccess?
Why ide is recommended for use while programming with php?
Explain the difference between require() and require_once()?
Is null or empty c#?
Explain type casting and type juggling.
What is the delimiter syntax is PHP's default delimiter syntax
Does php class need constructor?
Why should I learn php?
Tell me what is the meaning of a final class and a final method?
Is facebook still in php?
What are the design patterns in php?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
How can we display information of a variable and readable by a human with php?