Hi there,
I am currently writing a shoutbox script for my site which partly requires an ability to message individual users.
For example:
expendabledecoy@ hi there this is a test
So basically I need to find a function that searches for the first @ in the message, then rips the username "expendabledecoy" prior to the first @ from the msg (to then be used in a mysql query for the name) and finally removes the "expendabledecoy@" altogether from the message.
I resume strpos would be used to find the first occurance of the @ symbol but I'm unsure how to rip the string before it and then how to strip the username@ from the rest of the message.
Any idea's?.
Thanks in advance. 🙂