We are preparing our line to insert with the binding method, and the insert
method. This method returns the last added ID as a result.
<?php
$name = 'John Doe';
$email = 'john@doe.com';
$password = md5('johndoe');
$id = DB::insert('INSERT INTO users (name, email, password) VALUES (?, ?, ?)', [$name, $email, $password]);
echo 'User ID: ' . $id;
?>