Parse error: syntax error, T_DOUBLE_ARROW in /home/u870021518/public_html/revolt.php on line 17

$demonsParam = ('str'=>250, 'vit'=>1500, 'agi'=>1500, 'def'=>10000); 

Closed due to the fact that off-topic participants Kromster , Alexey Shimansky , aleksandr barakin , Cerbo , user207618 12 May '17 at 14:35 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Alexey Shimansky, aleksandr barakin, Community Spirit
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Most likely you wanted to declare an array, this is done like this:

     $demonsParam = array('str'=>250, 'vit'=>1500, 'agi'=>1500, 'def'=>10000); 

    If PHP 5.4+ can use short syntax:

     $demonsParam = ['str'=>250, 'vit'=>1500, 'agi'=>1500, 'def'=>10000]; 
    • Thank you for your help!) - Indentikon