Home Other PHP Code Quality Guidelines

To print output in PHP, use print or echo. These are essentially the same functions (echo returns 1 and is a bit faster), and it's usually a personal preference to use one or the other. However, you should not use both in your PHP files.