Increment operator

String operators

Source Code:

Output:

Concatenation of txt1 and txt2 : Hello world!
Appends txt2 to txt1 : Hello world!

Logical operators

Source Code:

Output:

Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!

Comparison operators

Source Code:

Output:

bool(true)
bool(false)
bool(false)
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)

Use readfile() to read a file and write it to the output buffer

Source Code:

techno.txt

Output:

Technowellwebsolutions welcomes you in php programes. count is : 53