0

I have a small (few elements) list of primary keys, sorted by hand. For example
$ids = [15, 75, 54, 13];
The SQL command is simple.
SELECT id, value, type FROM a_table WHERE id IN (15, 75, 45, 13);
This is SQL, so the order of output may be random. I want to
restore it in PHP. My first att...