Php customary representation Twitter connections
Here's a snappy bit of code to highlight answers to clients in twitter for instance @vivacityIT this script utilization general outflow to find and trade a dependent upon two items. Firstly it checks for a space preceding the @ image and after that checks for the space at the close of the clients name, it then takes that string and swaps it with a connection to the client twitter profile. Convenient in the event that you have a dynamic record of tweets that you need to linkify. All you have to do is change $ret to the variable the holds your string. $ret = preg_replace("#(^|[n ])@([^ "tnr<]*)#ise", "'\1<a href="http://www.twitter.com/\2" >@\2</a>'", $ret); These two lines of code make a comparable showing with respects the structure anyway they search for the http://…

