Settings

Theme

PHP 8 Released

php.net

4 points by mnazim 5 years ago · 1 comment

Reader

dkdbejwi383 5 years ago

Having not used PHP for many years, this does look like a nice set of improvements.

Are there any plans to improve the standard library? For example, looking at the first example from this changelist:

  htmlspecialchars($string, double_encode: false); 
Wouldn't this be nicer encapsulated as something like:

  $encoded = $myString.htmlEncode(double_encode: false);
or

  $encoded = String.htmlEncoded($myString, double_encode: false);
I think that's more discoverable/logical than just a strangely named function in the global scope.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection