Академический Документы
Профессиональный Документы
Культура Документы
iterable: declare functions as accepting or Constants declared within classes may now
returning either a traversable or array specify their visibility
try {
About the Author
} catch (AnException | AnotherException $e) {
Thomas is a Web Technologies graduate from the UK. He
has a vehement interest in programming, with particular }
focus on server-side web technologies like PHP and Elixir.
CHEAT SHEETS / PHP / JAN 2017 / PAGE 2
Arithmetic on invalid strings will emit either an assert() - with a string as the rst argument
E_WARNING or an E_NOTICE, for example: compact()
extract()
1b + something; func_get_args()
// E_NOTICE for 1b, E_WARNING for something func_get_arg()
func_num_args()
Overow on octals will now emit an E_WARNING get_dened_vars()
mcrypt extension has now been deprecated mb_parse_str() - with one arg
Eval option for mb_ereg(i)_replace() deprecated parse_str() - with one arg
DateTime extension has added support for
microseconds, which will break code with Calling a user-dened function with too few args
already broken logic, for example: will now result in an ArgumentCountError exception
JSON decoding an empty key results in an empty
new DateTime == new DateTime; property name, not _empty_ as a property name
// will likely eval to false rather than being mostly true