$id = 1; $user = User::newFromId( $id );
$ids = array( 1, 2, 3 ); $users = array(); foreach ( $ids as $id ) { $users[] = User::newFromId( $id ); }In this example, we create an array `$ids` that holds the IDs of the users we want to retrieve. We then use a `foreach` loop to iterate through the array, calling the `newFromId` method for each ID and adding the resulting User object to an array `$users`. Package Library: This code appears to be using a custom `User` class that is part of a larger application or library. It is difficult to determine the specific package library without more context.