How to upgrade internal php version of Zend Studio / Eclipse

Posted by Moak on Stack Overflow See other posts from Stack Overflow or by Moak
Published on 2010-11-10T04:24:06Z Indexed on 2011/02/18 7:25 UTC
Read the original article Hit count: 232

Filed under:
|
|

I was following this tutorial when typing up this code:

public function search($term){
    $filter = function($tag) use ($term){
        if(stristr($tag,$term))
            return true;
        return false;
    };
    return array_filter($this->_tags,$filter);
}

I get following errors in Zend Studio 8

syntax error, unexpected '{'
syntax error, unexpected 'function'
syntax error, unexpected 'use'  

However the code works fine on my Xampp with php 5.3.1 - How can I find the version of PHP in Zend Studio, and how can I upgrade it?

© Stack Overflow or respective owner

Related posts about php

Related posts about eclipse