This is a practical example for compact() and extract() functions in PHP, pretty simple:
$title = 'Hello, world!';
$author = 'WebPajooh';
View::make('view1', compact('title', 'author'));
https://virgool.io/@WebPajooh/compact-and-extract-in-php-fxy7suhhqmtk