What has changed in PHP 5.5.x

Most improvements in PHP 5.5.x have no impact on existing code. There are a few incompatibilities and new features that should be considered, and code should be tested before switching PHP versions in production environments.

For systems being upgraded from an older version of PHP, the relevant documentation is available at:

add a note add a note

User Contributed Notes 1 note

up
-1
Mohammad (MD) Amanalikhani
10 years ago
hello

Name and Number of seasons:

string = array('winter','spring','summer','fall')[(int)($month/3.1)];
integer = (int)($month/3.1)+1;

example:
2014/05/05
$year=2014;
$month=05;
$day=05;

$int = (int)($month/3.1)+1; // 3
$str = array('winter','spring','summer','fall')[(int)($month/3.1)]; // 'summer'
To Top