DEV Community

Discussion on: PHP crash course : Strings and Numbers

Collapse
 
qferrer profile image
Quentin Ferrer • Edited

Thanks for this great post! In this following example you shared:

$message = "Hello World";

echo $message[-1];
// e
Enter fullscreen mode Exit fullscreen mode

The result is d and not e šŸ˜„

Greetings,

Quentin

Collapse
 
ericchapman profile image
Eric The Coder

Oupss thanks. Corrected.