.php ファイルからコンテンツを取得し、配列にプッシュしたい場合、取得した結果は次のようになります。
//english error
$lang['error_incorrect_login'] = "The username or password doesn't match. Please try again";
$lang['error_user_exist'] = "The Username already exist in database. Please try using a different Username";
$lang['error_email_exist'] = "Email address already exist in database";
これは私の.phpファイルの実際の内容です
次のような結果配列が必要です。
array(
['error_incorrect_login'] = "The username or password doesn't match. Please try again",
['error_user_exist'] = "The Username already exist in database. Please try using a different Username",
['error_email_exist'] = "Email address already exist in database"
);
実際に解析したい
$lang['error_incorrect_login'] = The username or password doesn't match. Please try again";
ステートメントのタイプ & のような配列にプッシュします。
array(
['error_incorrect_login'] = "The username or password doesn't match. Please try again",
['error_user_exist'] = "The Username already exist in database. Please try using a different Username",
['error_email_exist'] = "Email address already exist in database"
);