Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$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