I am using codebird to auto tweet to twitter. I am OK with tweeting, as below:
require_once ('src/codebird.php');
\Codebird\Codebird::setConsumerKey('YOURKEY', 'YOURSECRET');
$cb = \Codebird\Codebird::getInstance();
$cb->setToken('YOURTOKEN', 'YOURTOKENSECRET');
$reply = $cb->statuses_update('status=Whohoo, I just tweeted! today is 01/01/14');
How can I add PHP $ variable to the tweet, I tried: (not working)
$todaydte = gmdate("Y-m-d", time());
$reply = $cb->statuses_update('status=Whohoo, I just tweeted! today is $todaydte');
it is tweeting (Whohoo, I just tweeted! today is $todaydte) !! Please help.