About 13,800,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

    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 …

  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. operators - Not equal to != and !== in PHP - Stack Overflow

    Not equal to != and !== in PHP [duplicate] Asked 14 years, 11 months ago Modified 2 months ago Viewed 285k times

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

    You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I …

  6. PHP Difference between array() and [] - Stack Overflow

    Short array syntax was introduced in PHP 5.4, there is no difference and the old method will not be removed, so it's safe to use either. Short tags are usually frowned upon, I wouldn't use them.

  7. Start learning PHP — Useful resources for beginners and advanced

    Oct 28, 2023 · Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge …

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

Refresh