Hello, I'm trying to call a function within a string return statement. Both are in the same class. However, I'm obviously not calling it right because it doesn't work :)
private static function doSomething(){
$d['dt'] = //unix time stamp here;
return '<div class="date" title="Commented on '.date('H:i \o\n d M Y',$d['dt']).'">'.time_since($d['dt']).'</div>';
}
function time_since(){
//return 'string';
}
Any help is appreciated! Thanks