How can I send a message to IRC with PHP

How can I send a message to the IRC with PHP? I can send a message, but I cannot send a message. Any sample code available?

How are you connecting? Are you using any libraries?

What does this mean?

(Resolved)Creating a chat bot in PHP CLI - not pulling any information I’m connecting like this but can’t send a message