1.What are the difference between echo , print , print_r ?
else this 3 can we show output to a client in some other
way?
Answer Posted / muhammad babar bhatti
echo is a command for display a string or statement
print is a function for display a string or statement, but
it returns true/false also and print_r is also a function
that use to display an array data which we can not do
through the print function or echo statement.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is $_ files in php?
How do you use an array in excel?
How many escape sequences are recognized in double-quoted strings in php?
Write a program to get second highest number in an array using php?
Is php coding easy?
What is data structure in php?
How to swap two variables without using 3rd temp variable.
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
Do you know design patterns. List few?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
What does the php error 'parse error in php - unexpected t_variable at line x' means?
What is polymorphism php?
Why json is used in php?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
How do you remove duplicates from an array?