PHP error category

Strings

String operations and encoding.

Strings errors arise when string operations and encoding affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.

The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.

Guides in this category

Title Pattern Severity
Cannot access offset of type string on string Fatal error: Uncaught TypeError: Cannot access offset of type string on string in %s on line %d fatal
Trying to access array offset on value of type string Warning: Trying to access array offset on value of type string in %s on line %d warning

Helpful tools