Bifalgorithm post · Computer science one · Basic I/O
How does PHP perform basic input and output?
How does PHP perform basic input and output? (Computer science one · Basic I/O) — "Recall the main purpose of PHP is as a scripting language to serve dynamic w…
Ideas in this flowchart
- PHP is primarily a scripting language for serving dynamic webpages.
- PHP also supports standard input and standard output.
- PHP provides several ways to print output to standard output.
- The print and echo keywords are aliases that can output any variable or string.
- The printf() function produces formatted output.
- Examples assign values to $a and $b, then display them with print, echo, and printf().
- PHP also provides several ways to perform standard input.
- The easiest way to perform standard input is to use fgets().