PHP print Keyword
Definition and Usage
The print
keyword is used to output text.
Unlike echo
, print
can only output one string at a time. Unlike echo
, print
has a return
value, which is always 1.
Related Pages
The echo
keyword
❮ PHP Keywords