
Echo Statement:-
The echo statement is used to output in display with or without parenthesis echo or echo() but no return value. Echo Statement faster than print Statement.
ex:-

Print Statement:-
Print Statement is used as Echo Statement but the print statement has a return value of 1. Print Statement not as fast as the Echo Statement.
ex:-

Print_r function in PHP:-
Print_r function is used to display or print information, which is readable by humans.
ex:-





I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND