Avatar ·

PHP Syntax Reference: What Do These Symbols Mean? (PHP Syntax)

Hello colleagues! I'm a beginner PHP developer and I constantly get confused by the symbols used in PHP. For example, I see in other people's code `->`, `=>`, `::`, `@`, `...` (three dots), `??` (two question marks) and `?:` (question mark with colon). I understand that these are some operators or syntactic constructs, but every time I encounter them in code, I have to look up the documentation or Google it. This really slows down development. I have a specific example. I'm trying to write a simple function to check a user's age and output a message. Here's what I came up with: ```php $user = new User(); $user->name = 'Ivan'; $user->age = 25; if ($user->age >= 18) { echo $user->name . ' is an adult'; } else { echo $user->name . ' is a minor'; } ``` But a more experienced