Jnr PHP/Codeigniter Developer Question:

Explain echo vs. print statement?

Tweet Share WhatsApp

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.

Download Jnr PHP/Codeigniter Developer PDF Read All 61 Jnr PHP/Codeigniter Developer Questions
Previous QuestionNext 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?