Instantly share code, notes, and snippets.

What would you like to do?
$data = [];
// Looping array id dan melakukan pencarian
// berdasarkan id tersebut.
foreach ($ids as $id) {
$data[] = DataRepository::findById($id);
// Query yang terjadi di belakang layar
$result = $connection->query("SELECT * FROM repo WHERE id = " . $id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment