Expressions PHP Manual Prev Next Chapter 9. In PHP, almost anything you write is an expression. The most basic forms of expressions are constants and variables. If everything works right, this is exactly what will happen. Slightly more complex examples for expressions are functions.
Functions are expressions with the value of their return value.
Usually functions don't just return a static value but compute something. Of course, values in PHP don't have to be integers, and very often they aren't. Each of these value types can be assigned into variables or returned from functions. However, PHP takes expressions much further, in the same way many other languages do. PHP is an expression-oriented language, in the sense that almost everything is an expression.