Is it necessary to use quotation marks when using variables in str_replace function in PHP?

When using variables in the `str_replace` function in PHP, it is not necessary to use quotation marks around the variables. Simply pass the variables as arguments to the function without quotation marks.

// Example of using variables in str_replace without quotation marks
$old_string = "Hello, world!";
$search = "world";
$replace = "PHP";
$new_string = str_replace($search, $replace, $old_string);
echo $new_string; // Output: Hello, PHP!