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 purpose of php?
Tell me what does the array operator '===' means?
Do loops php?
What is the use of $_server and $_env?
What language is php based on?
What are default session time and path?
Is facebook still written in php?
What is the use of token in php?
Why is used in php?
What is the use of hooks?
How to support multiple-page forms?
Is it more secure to use cookies to trfer session ids?
Why and where do we use htaccess?
How to calculate the difference between two dates using php?
What are differences between PECL and PEAR?