Junior PHP Developer Question:
Explain me what is the use of 'print' in php?
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 ';
Example
print('PHP Interview questions');
print 'Job Interview ';
Previous Question | Next 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? |