Use explode(), though I don't think this is the best method, but it must be a workable one:
e.g.
$org = "<userinfo userid=19342 name=Rayn aim=Rayn>";
$resultAry = explode(" ", $org);
$useridAry = explode("=",$resultAry[1]);
$userid = $useridAry[1];
$nameAry = explode("=",$resultAry[2]);
$name = $nameAry[1];
$aimAry = explode("=",$resultAry[3]);
$aim = $aimAry[1];
Look silly? Yes, I think so.
So please avoid this or use other pattern.:eek: