PHP中转换twitter链接

function twitterify($ret) {
$ret = preg_replace("#(^|[n ])([w]+?://[w]+[^ "nrt< ]*)#", "1<a href="2" target="_blank">2</a>", $ret);
$ret = preg_replace("#(^|[n ])((www|ftp).[^ "tnr< ]*)#", "1<a href="http://2" target="_blank">2</a>", $ret);
$ret = preg_replace("/@(w+)/", "<a href="http://www.twitter.com/1" target="_blank">@1</a>", $ret);
$ret = preg_replace("/#(w+)/", "<a href="http://twitter.com/search?q=1" target="_blank">#1</a>", $ret);
return $ret;
}

Twitter OAuth API Keys of Official Clients

Twitter for Andriod

key: 3nVuSoBZnx6U4vzUxf5w
secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

key: IQKbtAYlXLripLGPWd0HUA
secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Echofon

key: yqoymTNrS9ZDGsBnlFhIuw
secret: OMai1whT3sT3XMskI7DZ7xiju5i5rAYJnxSEHaKYvEs

Twitter for iPad

key: CjulERsDeqhhjSme66ECg
secret: IQWdVyqFxghAtURHGeGiWAsmCAGmdW3WmbEx6Hck

Twitter for Mac

key: 3rJOl1ODzm9yZy63FACdg
secret: 5jPoQ5kQvMJFDYRNE8bQ4rHuds4xJqhvgNJM4awaE8

Twitter for Windows Phone

key: yN3DUNVO0Me63IAQdhTfCA
secret: c768oTKdzAjIYCmpSNIdZbGaG0t6rOhSFQP0S5uC79g

Tweetbot for iOS

key: 8AeR93em84Pyum5i1QGA
secret: ugCImRuw376Y9t9apIq6bgWGNbb1ymBrx2K5NK0ZI

twicca

key: 7S2l5rQTuFCj4YJpF7xuTQ
secret: L9VHCXMKBPb2eWjvRvQTOEmOyGlH4W50getaQJPya4

YoruFukurou

key: WfEZ02WzcqZMvs4HJMZLA
secret: 69zIxwA9KSuY4IDYRT2Bfk1rq62Nq1csspXOfSRKhg

HootSuite

key: w1Gybt9LP9zG46mS1X3UAw
secret: hRIK4RWjAO4pokQCvmNCynRAY8Jc8edV1kcV2go6g

Instagram

key: 7YBPrscvh0RIThrWYVeGg
secret: sMO1vDyJ9A0xfOE6RyWNjhTUS1sNqsa7Ae14gOZnw

TweetDeck

key: yT577ApRtZw51q4NPMPPOQ
secret: 3neq3XqN5fO3obqwZoajavGFCUrC42ZfbrLXy5sCv8