← All examples Closure PHP Lambdas closure assigned to name Flowchart (ISO 5807) Flowchart Structogram StartInput priceReturn price * 1.2EndFigure 1 — applyTax Source code $applyTax = function ($price) { return $price * 1.2; }; Open in the editor