Redirect in PHP

Correct redirect using mandatory die() function to stop further processing.

php
fork add to bundle source
function redirect($url) { die(header('Location: ' . $url)); }

usage

load_function('redirect'); redirect('/some_url');
← how to use this in app?
create log ...inout