up vote 1 down vote favorite
share [g+] share [fb]
    $labels = (
        'steam' => 'Steam',
        'bore_water' => 'Bore Water',
        'boiler1oil' => 'Boiler 1 Oil',
    );

Parse error: syntax error, unexpected T_DOUBLE_ARROW on line 32: 'steam' => 'Steam',

Can anyone spot the issue with this?

link|improve this question

10  
You are missing the array keyword. – Pekka Jan 25 '11 at 12:12
got it! i cant accept a comment @pekka – benhowdle89 Jan 25 '11 at 12:13
Pekka's right (why don't post you it as an answer?). – Alberteddu Jan 25 '11 at 12:13
@Pekka: You typed in the wrong textarea. – BoltClock Jan 25 '11 at 12:13
1  
@ben use random.org – Pekka Jan 25 '11 at 12:17
show 12 more comments
feedback

2 Answers

up vote 4 down vote accepted
$labels = array(
    'steam' => 'Steam',
    'bore_water' => 'Bore Water',
    'boiler1oil' => 'Boiler 1 Oil',
);
link|improve this answer
You have the lowest rep....you get yours accepted :) – benhowdle89 Jan 25 '11 at 12:16
That is very nice of you, thanks :) – 9muses Jan 25 '11 at 12:20
feedback

You are missing array:

$labels = array(
    'steam' => 'Steam',
    'bore_water' => 'Bore Water',
    'boiler1oil' => 'Boiler 1 Oil',
);
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.