About 9,510,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. syntax - What does '<?=' mean in PHP? - Stack Overflow

    Note that the ; is redundant; as the answers suggest this short-tag expands to an echo with a semicolon added to the end, as per the php documents.

  4. What is <=> (the 'Spaceship' Operator) in PHP 7? - Stack Overflow

    May 21, 2015 · PHP 7 introduced the Spaceship (<=>) operator. What is it and how does it work?

  5. What does double question mark (??) operator mean in PHP

    Same here exactly, thanks to this question I just found within less than 10 seconds what ?? means in PHP by literally typing "php double question mark operator" and confirming what I …

  6. How to call a PHP function on the click of a button

    Calling a PHP function using the HTML button: Create an HTML form document which contains the HTML button. When the button is clicked the method POST is called.

  7. How to set PHP executable path php.validate ... - Stack Overflow

    Question is How to set php executable path php.validate.executablePath in vscode when php is set inside docker container? My understanding is that docker runs containerized applications …

  8. PHP: How to send HTTP response code? - Stack Overflow

    Jul 15, 2010 · I have a PHP script that needs to make responses with HTTP response codes (status-codes), like HTTP 200 OK, or some 4XX or 5XX code. How can I do this in PHP?

  9. How to use arrow functions in PHP? - Stack Overflow

    This is how we can use in OOP php. Here summation is the arrow function that is called inside as an argument of the add method that is inside of calculate class.

  10. Format code command for PHP/HTML in Visual Studio Code

    Jun 13, 2020 · Is it possible to get Visual Studio Code to format mixed HTML and PHP code on Windows Visual Studio Code version 0.7.1?