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

    Elvis ?: returns the first argument if it contains a "true-ish" value (see which values are considered loosely equal to true in the first line of the Loose comparisons with == table).

  2. Start learning PHP — Useful resources for beginners and advanced!

    Oct 28, 2023 · How to install PHP on different OS. Windows: The simplest way to start working with PHP on Windows would be. download the zip archive from the topmost link labeled zip on this page; unpack it in C:\PHP folder; start running your php scripts in console right away, with C:\PHP\php your_script.php

  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 sanity, read no further because none of this will make any sense, except to say that this is how the insanity-fractal, of PHP was designed. NAN != NAN but NAN == true.

  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 colon operator (which is called the Paamayim Nekudotayim from Hebrew - trivia) is used when calling an object or property from a static context. This means an instance of the ...

  5. 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 match expression Share

  6. Difference between PHP ??, ?:, and ??= - Stack Overflow

    May 16, 2022 · PHP Collective See more. This question is in a collective: a subcommunity defined by tags with relevant ...

  7. Reference Guide: What does this symbol mean in PHP? (PHP Syntax)

    Note that as of PHP 5.4 __CLASS__ works also in traits. When used in a trait method, __CLASS__ is the name of the class the trait is used in. __TRAIT__: The trait name. (Added in PHP 5.4.0) As of PHP 5.4 this constant returns the trait as it was declared (case-sensitive). The trait name includes the namespace it was declared in (e.g. Foo\Bar).

  8. What does $$ (dollar dollar or double dollar) mean in PHP?

    Jun 23, 2016 · PHP Collective See more. This question is in a collective: a subcommunity defined by tags with relevant ...

  9. Newest 'php' Questions - Stack Overflow

    Stack Overflow | The World’s Largest Online Community for Developers

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

    May 21, 2015 · Its a new operator for combined comparison. Similar to strcmp() or version_compare() in behavior, but it can be used on all generic PHP values with the same semantics as <, <=, ==, >=, >. It returns 0 if both operands are equal, 1 if the left is greater, and -1 if the right is greater.

Refresh