PHP escapes input parameter values


The page requires SQL operations when receiving parameters. At this time, escaping is required, especially ";".
Such as:

$a = ” Let’s go ” ;
$sql = “Insert into tmp(col) values(’$a’)” ;

In this case, there is an error in uncertainty.