When should single quotes be used over double quotes in PHP?
Single quotes should be used over double quotes in PHP when you want to avoid variable interpolation and escape sequences. Single quotes are more efficient in terms of performance as PHP does not have to parse the string for variables. Use single quotes when the string does not contain any variables or special characters that need to be interpreted.
$name = 'John';
echo 'Hello, ' . $name . '!'; // Output: Hello, John!