$login = '1234'; extract(array('login'=>true, 'messsage'=>'hacker'), 'message'); var_dump($login_, $message); // => $login='1234', $message='hacker'
You can set the EXTR_SKIP flag to do something like that. There are a bunch of other flags as well to control how it works.