197k views
3 votes
In PHP, the only way to output text is with echo.

Select one:

True

False

Is a function also use for outputting strings.

Select one:

a. ?>

b. &

c. Print

d. ;

1 Answer

3 votes

Answer:

1.False

2.Print

Step-by-step explanation:

In PHP echo is not the only way to output text we output text with the help of print both echo and print are almost same there is a one small difference between them that is echo does not return anything while print returns 1 ,multiple arguments can be passed to echo while print can take only 1 and echo is slightly faster than print.

?> is used to close the tag,& is a reference,; used to finish a statement.Only out of these Print is used to for outputting strings.

User MackM
by
6.9k points