About 28,000,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 (if that even …

  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 match expression

  3. operators - Not equal to != and !== in PHP - Stack Overflow

    Not equal to != and !== in PHP [duplicate] Asked 15 years, 3 months ago Modified 6 months ago Viewed 286k times

  4. 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, because it …

  5. PHP server on local machine? - Stack Overflow

    Nov 5, 2009 · I'm trying to build a PHP site and I'm wanting to test my PHP files without uploading them to my host. Basically testing them on my own machine before I upload them. How do I do that?

  6. 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 (like …

  7. How can I combine two strings together in PHP? - Stack Overflow

    In PHP variables contained in double quoted strings are interpolated (i.e. their values are "swapped out" for the variable). This means you can place the variables in place of the strings and just put a space …

  8. How do I get PHP errors to display? - Stack Overflow

    I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_ALL. I have restarted my Apache webserver. I have even put these ...

  9. Converting an integer to a string in PHP - Stack Overflow

    Jun 24, 2009 · PHP is loosely typed. What was an integer once, can be a string as well, e.g. when you echo it (used in so called string context).

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

    Dec 25, 2013 · 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?