我正在研究一个小型“用户列表”系统,我需要为三个数组。这是我“想要做的”:
<?php
$users = array("user1", "user2");
$descriptions = array("user1 description", "user2 description");
$socials = array("skype: user1", "skype: user2");
foreach ($users as $user && $description as $description && $socials as $social) {
echo "<tr><td style=\"width:60px\"><img width=\"50\" height=\"50\" alt=\"{$user}'s profile picture\" src=\"blog/users/{$user}/avatar.png\"><br/>{$user}</td><td style=\"width:70%\">{$descriptions}</td><td style=\"text-align:left\">{$social}</td></tr>}";}
?>
我怎样才能使这项工作?