Junior PHP Developer Question:

Explain me what is the use of 'print' in php?

Tweet Share WhatsApp

Answer:

This is not actually a real function, It is a language construct. So you can use with out parentheses with its argument list.
Example

print('PHP Interview questions');
print 'Job Interview ';

Download Junior PHP Developer PDF Read All 161 Junior PHP Developer Questions
Previous QuestionNext Question
Tell me how to strip whitespace (or other characters) from the beginning and end of a string?Explain me how to include a file to a php page?