how to use Thread for php target?
current I have some socket code use Tread class,
Thread.create(threadListen);
function threadListen() {
while (true) {
try {
var text = socket.input.readLine();
console.write(text + '\n');
} catch (z:Dynamic) {
console.write('Connection lost.\n');
console.close();
return;
}
}
}
but Tread class only available neko,cpp,lua?
how to implement in php target ?