It’s a new feature in php7.1
http://php.net/manual/en/migration71.new-features.php
A question mark means that the type hinted parameter (or return value) is also allowed to be null.
So in your example $arg can be null or any integer.
More Related Contents:
- Query database then email posts from where user is subbed to
- Display multidimensional array in php
- How do I send to the current page? [closed]
- How do I post multiple parameters to a URL
- Why am i unable to echo anything on the browser [duplicate]
- Convert php array to Javascript
- How can I get a hex dump of a string in PHP?
- Passing $_POST values with cURL
- How to find out if you’re using HTTPS without $_SERVER[‘HTTPS’]
- Mixing a PHP variable with a string literal
- How do I create a copy of an object in PHP?
- PHP buffer ob_flush() vs. flush()
- Assigning the return value of new by reference is deprecated
- How to get xdebug var_dump to show full object/array
- Uncompress gzip compressed http response
- PHP Random Shuffle Array Maintaining Key => Value
- How to use MAMP’s version of PHP instead of the default on OSX
- URL rewriting in PHP without htaccess
- Resize images in PHP without using third-party libraries?
- How do I remove the URL protocol and slash from user input in PHP
- Is htmlentities() sufficient for creating xml-safe values?
- json_encode() non utf-8 strings?
- Having issue with matching rows in the database
- Advantages / Disadvantages of pconnect option in CodeIgniter
- Insert data through ajax into mysql database
- how to configuring a xampp web server for different root directory
- Get Image Height and Width as integer values?
- Undefined index: file
- How can I connect to a Tor hidden service using cURL in PHP?
- Laravel / Intervention Image Class – class not found