- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$langertext= "loginmanuthedanuSID42sbe2345MACBBADCEunix_timestam344352123";
$regex = '/login(?<loginname>\S*)SID(?<SID>\S*)MAC(?<MAC>\S*)unix_timestam(?<unix_timestam>\d*)/';
preg_match($regex, $langertext, $matches);
var_dump($matches);