Can you just focus on more important things PHP?
This will be a short and sweet post. I just read about the fact they announced the pipe operator |> for PHP. This means you can flow the data through functions to modify it and such. That is fantastic for the few times you may have a need for it. The other times you will use it because you feel obligated or just are enticed to do so. You cannot help yourself, it is there so you will use it.
Meanwhile, one still cannot send a application/json
mimetype request to PHP server out of the box and get the variables in:
function auth() {
$username = $_POST["username"];
// The rest
}
Whereas, as far as I can tell the only change needed is right here. Just add the handler for the JSON one based on the example code that is already there. They did not do this for the last 15 years, where application/json
has definitely become of the main stays of web development. No let us focus on bringing functional programming to PHP of all things. At least these days you cannot use the argument anymore that PHP is not a compiled language.