- register_shutdown_function: documentation ( source)
<?php
class Core_Util_ShopNewEntityChangeList {
protected $things = array();
public function sendToNewApi() {
foreach (self::$things as $thing) {
echo $thing;
}
}
}
function notifyNewApi()
{
Core_Util_ShopNewEntityChangeList::sendToNewApi();
}
register_shutdown_function('notifyNewApi');
echo "Hello world";