In this case, you can' t push a key = > value to your array, just do this instead: $ datax[ ' mem' ] = $ str;. Manual: net/ manual/ en/ function. このT_ DOUBLE_ ARROWとはなんだろうとおもったのですが、 = > この記号のことらしく 、 エラーを調べるならこの矢印周辺の構文が怪しいということみたいです。 ちなみに コマンドラインでT_ DOUBLE_ ARROWのエラーを出すこともできる. The error message is: FatalErrorException in VideoController. php line 33: syntax error, unexpected ' = > ' ( T_ DOUBLE_ ARROW). php laravel · share| improve this question. asked Nov 13 ' 16 at 15: 59. PHP multi- dimensional arrays don' t work this way, $ tokens = [ = > ' år' = > ' ', ] ;. do it this way: $ tokens = [ = > [ ' år' = > ' ' ], = > [ ' måned' = > ' er' ], ] ;. ( [ ] is an array notation which can be used since PHP. you didn' t close your parenthesis on the prior line: ' post_ name' = > slug( $ thisShow[ ' title' ] ),. It' s probably due to an unclosed curly brace somewhere. Can include more code?
The line numbers in the error message are not always where. No offense intended, but you should read the manual. = > it is an assignment operator and is used in arrays. In the example $ my_ array = array( ' color' = > ' blue' ), color is the key, blue is the value ( of type string ) and $ my_ array is the variable. 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. PHP - Parse error, unexpected T_ STRING, expecting ', ' or ' ; '. Programmation · [ php] Parse error: syntax error, unexpected T [ Résolu] ( Résolu) » Forum - PHP. PHP Parse error: syntax error, unexpected T_ DOUBLE_ ARROW in Command line code on line 1. Double Arrow でした。 二重線のついた矢印. The condition should be like below - - = > is solely for associating keys & values within arrays if( strlen( trim( $ _ POST[ $ fieldname] ) ) > = $ maxlength) {. Hey I am trying to add a customize option in a wordpress theme that allows for the user to upload there own image in in a showcase but im getting a syntax error in my customize. Can any one help me write this the correct way? unexpected T_ DOUBLE_ ARROW [ closed] · Ask Question.
up vote 0 down vote favorite. Hi I' m getting an unexpected T_ DOUBLE_ ARROW on line 13. I know it seems like. - 3 · PHP | parse error T_ DOUBLE_ ARROW. Fix “ Parse error: syntax error, unexpected T_ FUNCTION”. both solve these errors and upgrade your performance, so it' s a double win for you! If you don' t have access to the cPanel, or prefer that the hosting provider deals.