lundi 20 avril 2015

php function to add links to tweet from API response

Vote count: -1

How can I create a php function to detect and add links to any URLs and hashtags within a tweet from the API response? thanks..

$json = file_get_contents('http://ift.tt/1d0NAiw');   
$data= json_decode($json, true);
$tweet = $data[0]['text'];

asked 58 secs ago
Pela
12



php function to add links to tweet from API response

Aucun commentaire:

Enregistrer un commentaire