How To Use PHP Sockets

I can make sockets, but I don’t know how to use them, right now I am trying to make a socket for flash, but I have NO cule how to use sockets!