gpt4 book ai didi

php - fatal error : Cannot use isset, 使用空表达式

转载 作者:行者123 更新时间:2023-12-05 08:17:28 24 4
gpt4 key购买 nike

我一直收到错误:

Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in line 42

这是第 42 行:

if (isset($_GET['reply_id'] && $_GET['reply_user'])) {

这是该代码的“完整”部分:

<?php
if (isset($_GET['reply_id'] && $_GET['reply_user'])) {
$reply_id = $_GET['reply_id'];
$reply_user = $_GET['reply_user'];
echo '<form action="#" method="post">
<center>
<textarea rows="4" cols="50" maxlength="300" name="comment_box" placeholder="Say something awesome..." Style="width:94%;font-family:helvetica;font-size:14px;">@' . $reply_user . '.</textarea></center>
<center><input type="submit" name="post2" class="post_text" value="Post"></center>
</form>';
}
?>

我该如何解决这个问题?

最佳答案

你是说

 if ( isset($_GET['reply_id'], $_GET['reply_user']) ) {
// code here
}

关于php - fatal error : Cannot use isset, 使用空表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33080573/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com