Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16055
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: test prog inpu tpost |
| Date | 2016-01-02 11:39 +0100 |
| Message-ID | <5687A8D7.8010505@arnowelzel.de> (permalink) |
| References | (1 earlier) <kplhy.63798$MN2.2950@fx07.iad> <n662gh$hm$1@jstuckle.eternal-september.org> <5686B656.3040603@arnowelzel.de> <n66ikt$thi$1@jstuckle.eternal-september.org> <87fuygd7qu.fsf@ahungry.com> |
Matthew Carter schrieb am 2016-01-02 um 03:40: [...] > Also - unless you're using an outdated version of PHP for some reason, > you no longer have to write code like: > > $x = isset($_GET['x']) ? $_GET['x'] : ''; > > You can use the null coalesce operator: > > $x = $_GET['x'] ?? ''; In fact only the latest version of PHP - 7.0 - supports this. Also see <http://php.net/manual/en/migration70.new-features.php>. So "outdated" is not really correct. According to <http://php.net/supported-versions.php> PHP 5.6 is not outdated yet and will get security fixes until 28 August 2016. Even PHP 5.5 is still getting security fixes - and both version don't support the null coalesce operator. There are also many older installations if PHP as well which either get maintained by the distributors (e.g. Debian/Ubuntu) or they just don't get upates at all. As PHP 7.0 was just released a couple of weeks ago I also doubt that many shared hosting provider already offer PHP 7.0. Many of them will still use PHP 5.6 or 5.5 to avoid trouble with older PHP scripts of their customers. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
test prog inpu tpost vjp2.at@at.BioStrategist.dot.dot.com - 2016-01-01 01:57 +0000
Re: test prog inpu tpost Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-12-31 21:22 -0500
Re: test prog inpu tpost Matthew Carter <m@ahungry.com> - 2015-12-31 21:40 -0500
Re: test prog inpu tpost "J.O. Aho" <user@example.net> - 2016-01-01 09:40 +0100
Re: test prog inpu tpost Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-01 09:32 -0500
Re: test prog inpu tpost Arno Welzel <usenet@arnowelzel.de> - 2016-01-01 18:24 +0100
Re: test prog inpu tpost Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-01 14:07 -0500
Re: test prog inpu tpost Matthew Carter <m@ahungry.com> - 2016-01-01 21:40 -0500
Re: test prog inpu tpost Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-01 21:53 -0500
Re: test prog inpu tpost Arno Welzel <usenet@arnowelzel.de> - 2016-01-02 11:39 +0100
Re: test prog inpu tpost Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-02 22:43 +0100
Re: test prog inpu tpost Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-12-31 21:39 -0500
Re: test prog inpu tpost vjp2.at@at.BioStrategist.dot.dot.com - 2016-01-07 03:19 +0000
csiph-web