Rumah >pembangunan bahagian belakang >tutorial php >PHP 字符串连接,求大神编者,解答
PHP 字符串连接,求大神编辑,解答
echo "<a href="#" plain="true" onclick="newUser('news','项目公告','home/news/news.php?id= . $row[news_id] ')>". $row["news_title"] . "</a>";
<br />$args = "'news','项目公告','home/news/news.php?id=".$row[news_id]."'";<br />echo '<a href="#" plain="true" onclick=" newUser('.$args.')" >'.$row['news_title'].'</a>';<br />
echo "<a href='#' plain='true' onclick=\'newUser('news','项目公告','home/news/news.php?id= ".$row['news_id']."')'>". $row['news_title'] . "</a>";