在使用阿里云通讯短信验证码功能时,下载了阿里提供的 SDK 和 Demo,运行 Demo 提示:Warning: Unexpected character in input: '\' (ASCII=92) state=1 in .....
遇到这样的错误的原因: This happens if you are trying to use namespaces but do not have PHP 5.3. PHP 5.2 and below don't support namespaces and throw this error when they see the backslash.
解决办法: 将服务器支持 PHP 版本改到PHP5.3及以上