Try the following:
$data='<table width="100%">
<tr>
<td align="center">
<b>
<h1 class="title_list">$$FullName$$</h1>
</b>
<br><br>
</td>
</tr>
<tr>
<td>$$FirstName$$ is a $$Gender$$.</td>
</tr>
</table>';
$data=str_replace(array('$$FirstName$$','$$Gender$$','$$FullName$$'),array('Bill','Male','Bill Gates'),$data);
echo $data;
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
Offline 3,004 posts
since Sep 2007