do something after redirect php

PHP
header("Location: /");
exit();
Source

Also in PHP: