PHP print() function


In this article, We will explain to you PHP print() function with example.

PHP print() function

The print() function is a string function and not actually a function. which is used to print one or more strings. so we can use parentheses or without it. so you can see our PHP String Function example.

Syntax

print(string);

Example

<?PHP
    print("This is My website"); echo "
"; print "This is My website"; ?>

Output

This is My website
This is My website