Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用此代码发送短信
但这仅在我将 $number 替换为像“0306977777777”这样的字符串数字时才有效。我不知道为什么将我的变量 ($number) 转换为随机字符。
$number = '0306977777777'
我得到了这个错误。
我不确定为什么您的代码没有正确处理 $number,因为前面的评论指出您需要调试设置 $number 的任何内容。
我确实注意到的一件事是,使用 Nexmo,您需要以国际格式发送号码,因此对于希腊,该号码应该306977777没有前导零,否则您的 SMS 将不会被接受
306977777