Security Learning Mode

You run the following PHP script:

<?php 
$name = mysqli_real_escape_string($_POST["name"]); 
$password = mysqli_real_escape_string($_POST["password"]); 
?>

What is the use of the mysqli_real_escape_string () function in the above script. Each correct answer represents a complete solution. Choose all that apply.