original_string: function get_userinfo_asobj($username) {
          $user_array = truncate_userinfo($this->get_userinfo($username));
          $user = new stdClass();
          foreach($user_array as $key=>$value) {
              $user->{$key} = $value;
          }
          return $user;
      }
code: function get_userinfo_asobj($username) {
          $user_array = truncate_userinfo($this->get_userinfo($username));
          $user = new stdClass();
          foreach($user_array as $key=>$value) {
              $user->{$key} = $value;
          }
          return $user;
      }
code_tokens: function get_userinfo_asobj ( $ username ) { $ user_array = truncate_userinfo ( $ this -> get_userinfo ( $ username ) ) ; $ user = new stdClass ( ) ; foreach ( $ user_array as $ key => $ value ) { $ user -> { $ key } = $ value ; } return $ user ; }
docstring: Reads user information from DB and return it in an object.
  
  @param string $username username
  @return array
docstring_tokens: Reads user information from DB and return it in an object .