Jnr PHP/Codeigniter Developer Question:

Download Job Interview Questions and Answers PDF

Explain echo vs. print statement?

Jnr PHP/Codeigniter Developer Interview Question
Jnr PHP/Codeigniter Developer Interview Question

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 Interview Questions And Answers PDF

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?