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 happens)?
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
What is this? This is a collection of questions that come up now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list. This qu...
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 ...
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 guest/virtual machine but with less resources.
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 thought it would be.
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.
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?
I'd like to check if two arrays are equal. I mean: same size, same index, same values. How can I do that? Using !== as suggested by a user, I expect that the following would print enter if at leas...