Escapes and surrounds a PHP value with single quotes.
string $value A PHP value:
public static function escapeWithSingleQuotes(string $value) : string { return \sprintf("'%s'", str_replace('\'', '\'\'', $value)); }