我想在甜蜜警报中显示 PHP 变量但找不到解决方案,我浏览了甜蜜警报 2 的文档但找不到任何东西。谁能帮我?
这是我的代码
$name = "xyz";
//sweetalert code
echo "<script>";
echo 'setTimeout(function () { swal("Greetings $name!","Thank you for adding your business details.<br>Our admin team will review the same and will publish shortly..!","success");';
echo '}, 100);</script>';