我想了解 PHP 中的字符串是否为空,我正在使用此代码。
更新:工作代码,感谢您的帮助。
<?php
//Syntax blah.php?request=Value to log here
//iPwnStore
$request = $_GET['iPwnStore'];
if(empty($request))
{
echo "Error, string is null!";
//It always comes done to the Error, allthough $request isn't nil
}
else
{
file_put_contents('iPwnStore.txt', $request1."\n\n", FILE_APPEND);
echo "Success";
}
?>