0 votes
120 views
in PHP by (2.0k points)
edited

What is "print" in PHP?

1 Answer

0 votes
by (2.0k points)
edited

PHP print output a string. It is a language construct not a function. So the use of parentheses is not required with the argument list. Unlike echo, it always returns 1.

Syntax:

int print ( string $arg)
 

Related questions

0 votes
1 answer 139 views
0 votes
1 answer 117 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 83 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 90 views
asked Oct 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 103 views
0 votes
1 answer 104 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

537 users

...