<?php
foreach ($unpinpointed as $user) {
echo "<div class='list-group-item'>
<div class='pull-right'>
<button style='margin-right: 15px' type='button' class='btn btn-info' aria-label='Envelope' data-userid=$user[id] data-email=$user[email] ></button>
<a href='tel:".$user['phonenumber']."'>
<button type='button' class='btn btn-info' aria-label='Earphone'>
<span class='glyphicon glyphicon-earphone' aria-hidden='true'></span>
<span hidden>$user[phonenumber]</span>
</button>
</a>
</div>";
}
?>
引号要注意!!!
调用HTML的电话功能 <a href='tel:".$user['phonenumber']."'> 方括号内必须用引号
其他的方括号内一定不能用引号