Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16063

Re: test prog inpu tpost

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: test prog inpu tpost
Date 2016-01-02 22:43 +0100
Organization PointedEars Software (PES)
Message-ID <3589447.gGvhme3zgT@PointedEars.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>

Show all headers | View raw


Matthew Carter wrote:

> 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'] ?? '';

PHP 5.x is not an “outdated version” yet, and it is to be hoped that this 
expression does not generate a notice in PHP 7.0.x if $_GET has no “x” key.
 
-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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