php - 如何在php中获取对象的值?
问题描述
当我尝试获取对象值时遇到问题,其中没有任何内容。但是当我只是回显对象时,没有 null 我不知道如何获取该值
if(isset($_POST['submit'])) {
$secret = "6Le3nvgUAAAAAMU0DRNLtvtaIq3h6X9ybEnO_txv";
$captcha = $_POST['g-recaptcha-response'];
$url = 'https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$captcha;
$response = file_get_contents($url);
echo $response;
}
我得到了回应
但是当我尝试 $response-> success 时。它返回 null ..
解决方案
推荐阅读
- mysql - 存储过程比等效查询慢
- javascript - 在应用程序的全局打字稿中为 Angular 8 中的 DatePicker 设置日期最小值和最大值限制
- r - 如何在doParallel中显示进度条?
- git - 无法更改 git config 的 user.name,立即重置
- r - 如何在 R 中的一定长度的数据后停止脚本运行?
- linux - 如何将具有特定名称的文件scp到另一台服务器?
- javascript - 如何使用 react-router 创建侧边栏并设置按钮样式
- java - Java Cipher.getInstance("RSA/ECB/NoPadding"); C# 中的等价物?我无法在 .net 框架应用程序中加密消息
- latex - 如何将 .xlsx 文件附加到 LaTex 文档
- javascript - 为什么 rxjs 6 marbles 文档说“--(abc)-|” 在第 8 帧完成?