- substr: documentation ( source)
- trim: documentation ( source)
<?php
$string = 'DE94300400000100724400';
if(strlen(trim($string)) != 22)
return;
$prefix=substr($string, 4, 8);
$suffix=substr($string, 12, 10);
print $account=$prefix.'/'.$suffix;