Good day. I don’t really understand why I can use fetchAll() only 1 time? The second time, an empty array is returned.
$statement = $pdo->query($someSql); $a = $statement->fetchAll(); $b = $statement->fetchAll(); // empty array Why it happens? After all, as I correctly understand, the result of the query (result set) is stored in $statement after the query() ? What prevents to get it again?