How to fix Parse error: syntax error, unexpected '$require_dva' (T_VARIABLE)?

0 like 0 dislike
12 views
I'm still new to scripting and not really fix the errors. Please tell me how to fix this error?
Here is the script:
$require_dva = array( 'ts' => $bd 'events_limit' => 1000, 'msgs_limit' => 200, 'v' => '5.76', 'access_token' => $token ); getme: $get_params2 = http_build_query($require_dva); $result2 = json_decode(file_get_contents('https://api.vk.com/method/messages.getLongPollHistory?ip_version=2&v=5.73&ts='.$bd.'&msgs_limit=200&events_limit=1000&access_token=dc60ba46acba9373b95b73297b1ac14d8567fb7521fa7e1ab6160745bd20c231ec366e2d54d0ef6b9f249'),true);
by | 12 views

3 Answers

0 like 0 dislike
Given a piece of a fully syntactically correct. If you missed something, even without specific restrictions according to language, syntactically correct for php4.* will.

The parser error is shown on the place where the error occurred. Its cause may be higher in this file.
by
0 like 0 dislike
Parse error: syntax error says only one thing - PHP is unable to read your script, you do not satisfy the language syntax (usually not ; or , in the wrong place, etc.). In this case, PHP gives you a hint, unexpected '$require_dva' (T_VARIABLE). Which literally means that PHP was not expecting this place a variable (T_VARIABLE), and waited for something else (a function for example). Inspect $require_dva. Deal with it, make sure it is exactly what you need http_build_query and it will work)
by
0 like 0 dislike
Use IDE, it will highlight syntax errors
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,707 users