我想回顯我的數據庫中的所有學生的電子郵件列表,但$email
變量不回顯,除非我從下面的代碼中刪除<>。它試圖讀取$email
作爲HTML或其他東西?我會如何正確地做到這一點?PHP變量不回顯,如果包裹在< >
$students = $users->student_list($item);
foreach ($students as $student) {
$email = $student['payer_email'];
$first = $student['first_name'];
$last = $student['last_name'];
echo "$first $last <$email>, ";
}