$sql = 'DELETE FROM `' . $table . '` WHERE `ID` = ?';
or
$sql = sprintf('DELETE FROM `%s` WHERE `ID` = ?', $table);
Is there anything to be considered that makes choosing one over the other more than a matter of preference?
I find the sprintf variant cleaner especially when more parameters get involved.
Bjom