Jnr PHP/Codeigniter Developer Question:
Explain echo vs. print statement?
Answer:
echo() and print() are functions in PHP, both output strings. Function echo() can take multiple expressions whereas print() cannot. Moreover print() returns true or false based on success or failure whereas echo doesn't.
Previous Question | Next Question |
Tell me what are PSRs? Choose 1 and briefly describe it? | Tell me how you can link images/CSS/JavaScript from a view in code igniter? |