About 9,520,000 results
Open links in new tab
  1. PHP short-ternary ("Elvis") operator vs null coalescing operator

    594 Can someone explain the differences between ternary operator shorthand (?:) and null coalescing operator (??) in PHP? When do they behave differently and when in the same way …

  2. How do the PHP equality (== double equals) and identity

    PHP Double Equals == equality chart: PHP Triple Equals === Equality chart: Source code to create these images: PHP equality charts Guru Meditation Those who wish to keep their …

  3. syntax - What does "->" or "=>" mean in PHP? - Stack Overflow

    Jun 2, 2024 · since PHP 7.4 => operator is also used for the arrow functions, a more concise syntax for anonymous functions. since PHP 8.0 => operator is also used to define hands in the …

  4. syntax - What does '<?=' mean in PHP? - Stack Overflow

    26 Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

  5. What's the difference between :: (double colon) and -> (arrow) in …

    Jul 4, 2010 · The difference between static and instantiated methods and properties seem to be one of the biggest obstacles to those just starting out with OOP PHP in PHP 5. The double …

  6. What is the use of the @ symbol in PHP? - Stack Overflow

    Jun 23, 2009 · I have seen uses of @ in front of certain functions, like the following: $fileHandle = @fopen($fileName, $writeAttributes); What is the use of this symbol?

  7. What does the .= operator mean in PHP? - Stack Overflow

    What does the .= operator mean in PHP? Asked 12 years, 8 months ago Modified 5 years, 9 months ago Viewed 65k times

  8. syntax - What are the PHP operators "?" and - Stack Overflow

    As of PHP 5.3: Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise. As …

  9. What does "=>" mean in PHP? - Stack Overflow

    Arrays in PHP are associative arrays (otherwise known as dictionaries or hashes) by default. If you don't explicitly assign a key to a value, the interpreter will silently do that for you.

  10. Using AND/OR in if else PHP statement - Stack Overflow

    Dec 10, 2010 · In php both AND, && and OR, || will work in the same way. If you are new in programming and php is one of your first languages them i suggest using AND and OR, …