Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/237.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Facebook Messenger机器人文本格式_Php_Json_Facebook_Bots_Messenger - Fatal编程技术网

Php Facebook Messenger机器人文本格式

Php Facebook Messenger机器人文本格式,php,json,facebook,bots,messenger,Php,Json,Facebook,Bots,Messenger,我收到以下消息,我的fb messenger机器人会回复用户: $message_to_reply = "To get travel info, reply in the format\nOrigin*Destination*TraveDate\nExample: City 1*City 2*$selected_date"; 我正在尝试使用\n添加换行符,但看起来好像不起作用。我也试过chr(10),'\n',''和,但它们都不适合我。有人面临同样的问题和解决方法吗?可能是重复的

我收到以下消息,我的fb messenger机器人会回复用户:

$message_to_reply = "To get travel info, reply in the format\nOrigin*Destination*TraveDate\nExample: City 1*City 2*$selected_date";
我正在尝试使用
\n
添加换行符,但看起来好像不起作用。我也试过
chr(10)
'\n'
'
'
,但它们都不适合我。有人面临同样的问题和解决方法吗?

可能是重复的