getUsers Back | Forward | Home

'Language Reference'

User Functions
  • connect

  • disconnect

  • grant_permissions

  • getUsers

  • version

  • query_count


  • Database Functions

    Data Manipulation Functions

    Table Functions

    Error Handling Functions

    << Last Section ( grant_permissions ) getUsers Next Section ( version ) >>
    Usage mixed getUsers ()
    Purpose Obtain a list of txtSQL users
    Availability txtSQL >= 2.2.2 RC2

    This function returns an array filled with a list of currently registered txtSQL users.

    Example 6: users() Copy to Clipboard
    <?php
    // $users now contains a list of txtSQL users
    $users = $sql->getUsers();
    foreach (
    $users as $key => $value )
    {
        print
    "Username: $value<br>\n";
    }
    ?>

    User-Contributed Comments for:
    getUsers()
    No comments found;