Oops, no-perator found. Have a joke instead.
arithmetic
bitwise
null coalescing
comparison
logical
strings
{$a} {$b}
Interpolation
Return a variable as a substring of a string. Curly braces are optional. Not supported in single-quoted strings.
Tags
$name = 'Nimrod';
"Hello, $name!"; // "Hello, Nimrod!"
$name = 'Pedro';
"Hello, {$name}!"; // "Hello, Pedro!"
What is this? Who are you!?
PHP Operators is a reference guide for operators old and new in the PHP programming language. We're SPATIE, a web development agency from Belgium. Besides client work we like to contribute to the open source community and make fun projects like this one.