I have a list of data.I need to add the first one as the title.
How can i get the first one and add the propery for heading.
View
<ul class="list-group">
<? foreach($job_details->result() as $value) { ?>
<li class="list-group-item m-xs">
<span class="badge badge-primary"><?echo $value->job_value;?></span>
</li>
<?}?>
</ul>
Anyone please help me