How do you wait for data when using nonblocking sockets in PHP?
Everything works fine up until I need to read data from the socket, that's where I need to properly wait for the data. I'm not exactly sure on how I would check if data is there to be read.