Parse Error Syntax Error Unexpected T_double_arrow Php
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might syntax error, unexpected '=>' (t_double_arrow) laravel have Meta Discuss the workings and policies of this site About syntax error unexpected t_double_arrow in codeigniter Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads syntax error, unexpected '=>' (t_double_arrow) yii2 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 unexpected > programmers, just like you, helping each other. Join them; it only takes a minute: Sign up php - syntax error, unexpected T_DOUBLE_ARROW [duplicate] up vote 0 down vote favorite This question already has an answer here: PHP Parse/Syntax Errors; and How to solve them? 10 answers how i can rid of this error?? Parse error:
Php Syntax Error Unexpected
syntax error, unexpected T_DOUBLE_ARROW in /var/www/core/restvt.api.php on line 35 PHP Code : $datax = Array(); foreach ($inis as $key => $data){ if ($data=="mem"){ $str = number_format($ARRAY[(array_search($data.':',$ARRAY)+2)]/1024,0,',','.')." MB [ ".number_format(($ARRAY[(array_search($data.':',$ARRAY)+2)]/$ARRAY[(array_search($data.':',$ARRAY)+1)])*100,0,',','.')." % ]"; array_push($datax, "mem"=>$str); //error here, why? }else{ array_push($datax,$data=>$ARRAY[(array_search($data.':',$ARRAY)+1)]); } } $jsonr = json_encode($datax); thx alot for your help... php syntax share|improve this question edited Dec 4 '13 at 2:00 asked Dec 4 '13 at 1:50 Andi Doank 6113 marked as duplicate by Cupcake, rahilwazir, Brilliand, Divi, Shankar Damodaranphp Users with the php badge can single-handedly close php questions as duplicates and reopen them as needed. Jun 7 '14 at 2:01 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. "mem"=>$str <--- what's this? –zerkms Dec 4 '13 at 1:53 variable string value from other array, i add for some string into it... –Andi Doank Dec 4 '13 at 1:57 add a comment| 2
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
Parse Error In Php
Overflow the company Business Learn more about hiring developers or posting ads with us syntax error, unexpected '[', expecting ')' Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a array_push in php community of 6.2 million programmers, just like you, helping each other. 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 http://stackoverflow.com/questions/20365334/php-syntax-error-unexpected-t-double-arrow the error Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' line 208 I keep getting 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 http://stackoverflow.com/questions/4847094/php-parse-error-unexpected-t-double-arrow asked Jan 31 '11 at 2:18 Brian 1111 1 There's no error here. Often errors can come up on a line, 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
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 http://stackoverflow.com/questions/6674917/unexpected-t-double-arrow About Us Learn more about Stack Overflow the company Business Learn more about https://www.phpbb.com/customise/db/mod/acp_add_user_mod/support/topic/95508 hiring developers 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 [closed] up syntax error vote 0 down vote favorite Hi I'm getting an unexpected T_DOUBLE_ARROW on line 13. I know it seems like quite a complicated set of arrays but it needs yo be like this. There are probably more errors later on also. Please could someone explain my mistake. Thanks array( ($LibraryStatus ? syntax error unexpected array("wLibrary" => array("title" => "Library", "display" => "")) : false), ($ControlStatus ? ("wControl" => array("title" => "Control", "display" => "")) : false)), "section2" => array( ($HDDStatus ? array("whdd" => array("title" => "HDD", "display" => "")) : false))); ?> php arrays share|improve this question asked Jul 13 '11 at 6:30 Michael 1863414 closed as too localized by cryptic ツ, Lusitanian, rdlowrey, tereško, X.L.Ant Mar 21 '13 at 9:14 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. 2 Hooooo boy. Php really needs to be taken out back and shot between the eyeballs. –eggonlegs Oct 11 '12 at 17:07 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote Missing array here: ($ControlStatus ? ("wControl" => ... Should be: ($ControlStatus ? array("wControl" =>... share|improve this answer answered Jul
Involved Learn how you can get involved with the project. 3.1 New Features An overview of the new features and improvements in phpBB 3.1 (The new version of phpBB). The Team Find out who is responsible for all the mayhem. Contact Us Have a question the forums don't answer? Come here. Advertising Information if you want to advertise on phpBB.com. Find out more about the project » Downloads Latest Version Download the latest stable release of phpBB Update Packages Automatic Update packages for your phpBB release Language Packs Translate phpBB into (almost) any language you like Extensions Download extensions to enhance phpBB’s functionality Styles Your forums need a new look? Browse our Styles DB Official Tools Official tools by the phpBB team to assist you with your board Customise Customisation Database Our customisation database contains just about everything you might need to customise your phpBB board to your liking. In it you will find Extensions (for 3.1.x), MODs (for 3.0.x), Styles, Language Packs, BBCodes, as well as various tools. Extensions (3.1.x) Guides on how to use them and how to create your own. Extensions DB Download or submit extensions to our extensions database. Modifications (3.0.x) Guides on how to use them and how to create your own. Modifications DB Download or submit modifications to our MODs database. Styles Guides on how to use them and to create your own styles. Styles DB Download or submit styles to our styles database. More resources on customising your board » Support Documentation Installation guide and the complete documentation. Knowledge Base Team and user submitted articles covering support areas. Flash Tutorials View Flash Tutorials that help you with the use of phpBB. phpBB Support The Support related areas in our community forums. IRC Support Old school? Visit the IRC support channel on freenode. International Support Find a 3rd party support site in your first language. More inform