Php Error Unexpected T_double_arrow
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings syntax error unexpected t_double_arrow in php and policies of this site About Us Learn more about Stack Overflow
Syntax Error, Unexpected '=>' (t_double_arrow) Laravel
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation syntax error unexpected t_double_arrow in codeigniter Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it
Syntax Error, Unexpected '=>' (t_double_arrow) Yii2
only takes a minute: Sign up Parse error: syntax error, unexpected T_DOUBLE_ARROW PHP [closed] up vote 3 down vote favorite 1 I'm getting a Parse error: syntax error, unexpected T_DOUBLE_ARROW PHP on line 47, which is 'post_content' => $thisShow['content'], Anyone got any ideas why? protected function _saveShow($thisShow) { $saveData = array( 'mid' => $this->_saveAsUserId, 'post_title' => $thisShow['title'], 'post_name' => slug($thisShow['title'], 'post_content' unexpected > => $thisShow['content'], 'post_date' => date('Y-m-d H:i:s'), 'post_date_gmt' => date('Y-m-d H:i:s'), 'category_id' => 4, 'post_author' => 0, 'category_name' => $thisShow['category_name'] ); // $this->_database->insert('wp_posts', $saveData); } php arrays syntax-error share|improve this question edited Apr 12 '10 at 14:11 Gumbo 396k64548668 asked Apr 12 '10 at 14:05 Belgin Fish 4,4222570106 closed as too localized by HamZa, andrewsi, Sindre Sorhus, Maerlyn, danodonovan Jun 20 '13 at 10:36 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 1 Answer 1 active oldest votes up vote 13 down vote accepted you didn't close your parenthesis on the prior line: 'post_name' => slug($thisShow['title']), share|improve this answer edited Nov 28 '11 at 18:37 answered Apr 12 '10 at 14:07 GSto 18.4k25104160 tha
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about
Php Syntax Error Unexpected
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Parse Error In Php
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. syntax error, unexpected '[', expecting ')' Join them; it only takes a minute: Sign up PHP: Parse Error: unexpected T_DOUBLE_ARROW up vote 0 down vote favorite My code gives me the error Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' line 208 I keep getting http://stackoverflow.com/questions/2622624/parse-error-syntax-error-unexpected-t-double-arrow-php this but it looks correct? Line 208 which is the second down. array( "name" => "Colour Scheme", "desc" => "Select the colour scheme for the theme", "id" => $shortname."_color_scheme", "type" => "select", "options" => array("blue", "red", "green"), "std" => "blue"), please advise! Thanks php syntax-error share|improve this question edited Jan 31 '11 at 3:08 alex 267k129653807 asked Jan 31 '11 at 2:18 Brian 1111 1 There's no error here. Often errors can come up on a line, http://stackoverflow.com/questions/4847094/php-parse-error-unexpected-t-double-arrow when the problem is actually right before it (for example missing ; at line end). Please show more of your code. –Jonah Jan 31 '11 at 2:26 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote T_DOUBLE_ARROW is the token for =>, so you have one which appears somewhere the parser doesn't expect it. Besides that trailing ,, there is no error with the code you posted. share|improve this answer answered Jan 31 '11 at 2:20 alex 267k129653807 Thanks for the response. Here is some code just before and after. –Brian Jan 31 '11 at 20:53 add a comment| up vote 0 down vote Besides that trailing ,, there is no error with the code you posted. -- alex Often errors can come up on a line, when the problem is actually right before it (for example missing ; at line end) -- Jonah My bet is that Jonah is correct and that the error in the line above this array. From the context of the trailing , I bet this is a mutli-dimensional array. If you include the code around your array I bet the problem is the line above. Good luck. share|improve this answer answered Jan 31 '11 at 2:35 Yzmir Ramirez 1,095610 array( "name" => "General", "type" => "section"), array( "type" => "open"), array( "name" => "Colour Scheme", "desc" =>
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers http://stackoverflow.com/questions/5933793/unexpected-t-double-arrow-php or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up unexpected T_DOUBLE_ARROW PHP up vote 0 down vote favorite I have a problem which i do not see on line 9 of my code (which is the second line for you guys). I syntax error searched stackoverflow for it, but the problem still seems to be hiding for me... Code is: $otsi_array( 'soiduki_tuup' => array( '' => 'Kõik', '4X4' => '4X4', 'Kaubik C' => 'Kaubik C', 'MAHTUNIVERSAAL' => 'MAHTUNIVERSAAL', 'Motoroller' => 'Motoroller', 'Sõiduauto' => 'Sõiduauto', 'Traktor' => 'Traktor', 'Veoauto' => 'Veoauto' ); All help is appreciated. php arrays share|improve this question asked May 9 '11 at 7:22 CodeInACan 267 add a comment| 4 Answers 4 active oldest votes up vote 5 down vote accepted Pay error unexpected t_double_arrow attention to the syntax... array ( '' => 'Kõik', '4X4' => '4X4', 'Kaubik C' => 'Kaubik C', 'MAHTUNIVERSAAL' => 'MAHTUNIVERSAAL', 'Motoroller' => 'Motoroller', 'Sõiduauto' => 'Sõiduauto', 'Traktor' => 'Traktor', 'Veoauto' => 'Veoauto' ) ); ?> share|improve this answer answered May 9 '11 at 7:26 Fabio Mora 2,77921227 2 sigh, such thing was between my eyes? darn me. I'm really sorry for wasting your time guys and thanks! –CodeInACan May 9 '11 at 7:35 add a comment| up vote 3 down vote You're missing an array declaration: $otsi_array = array( 'soiduki_tuup' => array( ... ) ); share|improve this answer answered May 9 '11 at 7:23 deceze 304k44386531 add a comment| up vote 2 down vote $otsi = array( 'soiduki_tuup' => array( '' => 'Kõik', '4X4' => '4X4', 'Kaubik C' => 'Kaubik C', 'MAHTUNIVERSAAL' => 'MAHTUNIVERSAAL', 'Motoroller' => 'Motoroller', 'Sõiduauto' => 'Sõiduauto', 'Traktor' => 'Traktor', 'Veoauto' => 'Veoauto' ); Or $otsi_array = array( /* .. */ );. share|improve this answer answered May 9 '11 at 7:24 KingCrunch 71.5k12105140 add a comment| up vote 2 down vote When you use a variable name followed by brackets, $otsi_array() in your case, PHP will treat it as "Call the function or object named in the variable, using whatever is between the brackets as parameters". The syntax between your brackets is illegal as an argument to pass to a function, so PHP throws the err