Flowchart (ISO 5807)
Source code
PHP
function color($c) {
return match ($c) {
1 => "Червоний",
2 => "Зелений",
default => "Інший",
};
}The editor opens with this code — change it and the chart redraws.
- Language
- PHP
- Constructs
- match expression
- Topic
- Switch / case
- Formats
- Word, Visio, draw.io, PDF, SVG