What is the equivalent of the Application Array/Object in PHP for managing multiple users?

In PHP, the equivalent of the Application Array/Object for managing multiple users is using a multidimensional array or an object to store user information. This allows you to easily access and manipulate user data within your application.

// Example of managing multiple users using a multidimensional array
$users = [
    ['username' => 'user1', 'email' => 'user1@example.com'],
    ['username' => 'user2', 'email' => 'user2@example.com'],
    ['username' => 'user3', 'email' => 'user3@example.com']
];

// Accessing user data
echo $users[0]['username']; // Output: user1

// Adding a new user
$newUser = ['username' => 'user4', 'email' => 'user4@example.com'];
$users[] = $newUser;

// Removing a user
unset($users[1]);