In PHP, text is commonly generated using the echo() function.
The print() function also generates text.
The echo() and print() functions are essentially the same, with echo() being more coming in my experience.