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 / mahesh
echo is a statement where print_r,print are the functions
all prints the variable result..
If the variable is an Array, then Print_r will prints the
array in details (Array[0]-> " the array values")...
where as the other two(echo and print) only prints as ARRAY().
| Is This Answer Correct ? | 47 Yes | 8 No |
Post New Answer View All Answers
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
How easy is php?
How to access standard error stream in PHP?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
What is the use of mysql_fetch_array in php?
How does csrf attack work?
How to remove blank spaces from the string?
Why does php start with variables?
What are majic methords in php?
Is php a low level language?
What is move_uploaded_file in php?
What is constructors and destructors?
How to assigning a new character in a string using php?
Is php still used?
Can the value of a constant change during the script's execution?