- preg_match: documentation ( source)
- print_r: documentation ( source)
- explode: documentation ( source)
- preg_filter: documentation ( source)
<?php
$var = 'status=200&username=14109FE1EDB7,BCF5ACBBA80F,F04F7C24B714';
if (preg_match('/status=200/', $var)) {
$arr = explode(',', preg_filter('/status=200&username=/', '', $var));
}
print_r($arr);