This question already has an answer here:
- How to echo an echo in php? 5 answers
In PHP is it possible to use site_url within an echo statement that already contains text? For instance could i change:
$data['following'] = 'You are not following ' . $name . ' <a href="http://raptor.kent.ac.uk/proj/co539/microblog/jlo21/index.php/user/follow/' . $name . ' ">Follow this user</a>';
to
$data['following'] = 'You are not following ' . $name . ' <a href="<?php echo site_url("user/follow"); ?>">Follow this user</a>
</div>