In Python3.8 There is new operator called walrus (:=) which can assign new variables inside a condition. I write a simple TCP socket connection in PHP, and I want my program to look nicer.
Is there something similar to it in PHP: Hypertext Preprocessor ?
if ($data := socket_read ($socket, 1024)) {
echo $data;
}