// memory saving unset($userinfos, $loggedin); $activeusers = substr($activeusers, 2); // get rid of initial comma