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

    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 (if that …

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

    Dec 26, 2012 · 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 …

  3. 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 …

  4. 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 …

  5. The 3 different comparisons, =, ==, === in PHP - Stack Overflow

    Jan 14, 2010 · What is the difference between =, ==, and ===? I think using one = is to declare a variable while == is for a comparison condition and lastly === is for comparing values of …

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

    Nov 29, 2015 · 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 …

  7. PHP - concatenate or directly insert variables in string

    If the variable inside the double quote PHP take time to parse variable. Check out this Single quotes or double quotes for variable concatenation? This is another example Is there a …

  8. 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, …

  9. What is <=> (the 'Spaceship' Operator) in PHP 7?

    May 21, 2015 · The <=> ("Spaceship") operator will offer combined comparison in that it will : Return 0 if values on either side are equal Return 1 if the value on the left is greater Return -1 …

  10. Newest 'php' Questions - Stack Overflow

    PHP is a widely used, open source, general-purpose, multi-paradigm, dynamically typed and interpreted scripting language designed initially for server-side web development.