一个便捷的include的wrapper封装
composer require digphp/includer
<?php
$phpcode='hello <?php echo $name;?>';
$name='xiaoming';
include \DigPHP\Includer\Wrapper::write($phpcode);
<?php
$phpcode='hello <?php echo $name;?>';
\DigPHP\Includer\Wrapper::load($phpcode, ['name'=>'xiaoming']);