- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$prefix = 'Korvin!~Korvin@concrete5/79063/Korvin';
$matches = array();
if (preg_match_all('/(.+?)!(.+?)@(.+?)/', $prefix, $matches)) {
var_dump($matches);
}