Top "Php-5.5" questions

PHP 5.5 is the successor to PHP 5.4. It was released on June 20, 2013.

Replace deprecated preg_replace /e with preg_replace_callback

$result = preg_replace( "/\{([<>])([a-zA-Z0-9_]*)(\?{0,1})([a-zA-Z0-9_]*)\}(.*)\{\\1\/\\2\}/iseU", "CallFunction('\\1','\\2','\\3','\\4','\\5…

php preg-replace preg-replace-callback php-5.5
What does yield mean in PHP?

I've recently stumbled over this code: function xrange($min, $max) { for ($i = $min; $i <= $max; $i++) { yield $i; } } I've …

php generator php-5.5 yield-keyword
How to get MIME type of a file in PHP 5.5?

I am using mime_content_type() in PHP 5.5 to get a MIME type, but it throws fatal: error function not …

mime-types deprecated php-5.5
Stop caching for PHP 5.5.3 in MAMP

Installed MAMP on a new Macbook with PHP 5.5.3. Reload and refresh do nothing. Still nothing. Google around for a few …

php caching mamp php-5.5
WAMPSERVER - Only upgrade PHP Version from 5.4.3 to 5.5.4

Can i upgrade the PHP version under wampserver instead of whole? Because current latest version of wampserver gives 5.4.3 version, but …

php wampserver php-5.5
Collisions with other trait methods

How can I deal with traits with methods of same name? trait FooTrait { public function fooMethod() { return 'foo method'; } public …

php traits php-5.5
Zend OPCache - opcache.enable_cli 1 or 0? What does it do?

In the documentation it says "mostly used for debugging" which would lead me think "never enable it unless you've a …

php zend-cache opcache php-5.5
How to find out if I have gd library or imagemagick installed?

This might seem a really stupid question. I am new php image processing. I assume there are only two imageprocessing …

php apache imagemagick gd php-5.5
Install PHP modules on CentOS

I'm trying to install PHP 5.5.21 on CentOS 7.0. When I execute php -v I get about 10 modules errors like this one: …

php module centos php-5.5 centos7
Install PHP 5.5 on Centos 7

I have a Centos 7 server running apache 2.4.6 and php 5.4. I'm trying to install Magento 2 on my server for a client …

centos7 php-5.5