-2
グローバル変数を使用しようとしていますが、予期しない等号があると言いますか?それはどうですか?PHPでグローバル変数を使用できません
<?php
global $text = "text";
echo $text;
?>
構文解析エラー:予期しない '='、予期している '、'または ';' in /home/chatwith/public_html/chatwithibot/test.php 3行目
'global'キーワードについての質問です。まず最初にすること:Google - > php.net - >マニュアル:http://php.net/manual/en/language.variables.scope.php#language.variables.scope.global詳細については、http: /imgur.com/gallery/wOsEq7N – Rizier123