// Which is the latest version on server?
$ONLINE = array(
- 'version' => trim(str_replace(chr(10), '', $response[0])),
- 'changed' => trim(str_replace(chr(10), '', $response[1])),
- 'revision' => trim(str_replace(chr(10), '', $response[2])),
+ 'version' => trim(str_replace(PHP_EOL, '', $response[0])),
+ 'changed' => trim(str_replace(PHP_EOL, '', $response[1])),
+ 'revision' => trim(str_replace(PHP_EOL, '', $response[2])),
'code' => '200 OK'
);
} else {