Ben şu this tutorial bu kodu yazarak edildi:
public function search($term){
$filter = function($tag) use ($term){
if(stristr($tag,$term))
return true;
return false;
};
return array_filter($this->_tags,$filter);
}
Ben Zend Studio 8 hataları şu olsun
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?