How can I create a function similar to Google Buzz or Facebook, where the user types an '@' symbol followed by a username which is then turned into a link?
Input is: "Hello, @example_user!"
And the output is: "Hello, Example User!"
This, I'm sure, would be simple to do.
(I'm new to the preg_replace function, and relatively new to PHP in general.)