Concept Flow - Print statement
Start
Execute print statement
Output text to screen
End
The program starts, executes the print statement which sends text to the screen, then ends.
<?php print "Hello, world!"; ?>
| Step | Action | Evaluation | Output |
|---|---|---|---|
| 1 | Execute print statement | print "Hello, world!"; | Hello, world! |
| 2 | End of script | No more code |
| Variable | Start | After print | Final |
|---|---|---|---|
| No variables | - | - | - |
PHP print statement syntax: print "text"; Print sends text to the screen immediately. Each statement ends with a semicolon. Used to show messages or results. Simple and direct output command.