- explode: documentation ( source)
- stripos: documentation ( source)
<?php
$new = 'test = new user id';
if (stripos($new, 'test') !== FALSE) {
$chk = explode("=",$new);
$chk = $chk[1];
echo $chk;
} else {
$chk = 'asa';
}
echo $chk;