PHP array_search nor working?
        Posted  
        
            by FFish
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by FFish
        
        
        
        Published on 2010-03-16T23:27:06Z
        Indexed on 
            2010/03/16
            23:31 UTC
        
        
        Read the original article
        Hit count: 257
        
What am I doing wrong here?
$array = array('sky'=>'blue', 'grass'=>'green', 'sun'=>'yellow');
$key = array_search('green', $array);
echo $key;
error: Parse error: syntax error, unexpected T_DOUBLE_ARROW in /Applications/XAMPP/xamppfiles/htdocs/search-array.php on line 2
© Stack Overflow or respective owner