For printing out strings, there are echo, print and printf.
Explain the differences.
Answer Posted / hardik
echo is a language construct(You can see we don't use
paranthesis for echo).echo does not return any value. print
is also a language construct but it returns an integer
value. printf is a function..... echo is considered fast
than print and printf
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to connect to mysql from a php script?
What are the 3 scope levels available in php and how would you define them?
What is the use of addslashes in php?
How do you use an array in excel?
Tell me what types of loops exist in php?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
How to delete an element from an array?
What library is used for pdf in php?
What is the difference between the include() and require() functions?
What is http get and post?
When are you supposed to use endif to end the conditional statement?
What is difference between print and echo in php?
Explain type casting and type juggling.
What is the difference between single-quoted and double-quoted strings in php?
How can we check the value of a given variable is alphanumeric?