Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 383 Bytes

File metadata and controls

11 lines (8 loc) · 383 Bytes

Use single quotes for string literals in PHP to enhance performance and maintain coding standards. This applies to plain strings without variable interpolation.

// Issue: Double quotes used unnecessarily
$string = "Hello, World!";

// Solution: Use single quotes for simple strings
$string = 'Hello, World!';