+1 vote
in PHP by
Which of the following is used to display the output in PHP?

a) echo

b) write

c) print

d) Both (a) and (c)

1 Answer

0 votes
by
d) Both (a) and (c)

Description: In PHP, both echo and print are language constructs. Both echo and print statements can be used with or without parentheses. We can use these statements to output variables or strings. The echo is a statement, which is used to display the output. The print is a statement used as an alternative to echo at many times to display the output.

Related questions

+1 vote
asked May 13, 2022 in PHP by john ganales
+1 vote
asked May 13, 2022 in PHP by john ganales
...