Skip to content

Greeting

PHP readline → echo

Flowchart (ISO 5807)

StartInput nameOutput «Привіт, ».nameEndFigure 1 — greet

Source code

PHP
function greet() {
    $name = readline("Ім'я: ");
    echo "Привіт, " . $name;
}

The editor opens with this code — change it and the chart redraws.

Language
PHP
Constructs
readline → echo
Topic
Input/Output
Formats
Word, Visio, draw.io, PDF, SVG

Related examples