The choice of colors for this page makes it really difficult to read
I also find the super slim scrollbar difficult to use.
I wish frontend developers would stop messing with UI :(
11–20 of 127 posts
I really wish Php added support for Perl's qq and q operators sometime too (1) It would really make writing scripts a lot easier and cleaner. (1) https://stackoverflow.com/a/41334570/1031454
This approach also has the added bonus of stopping PHP from accidentally evaluating something inside the strings.
I like how PHP is evolving. I wouldn't say it's always a joy to use but it definitively improved a lot.
PHP stdlib needs an overhaul, IMO.
> Use the _ operator to format numeric values:
> $price = 100_10;
> // $100 and 10 cents
Makes it sound like the underscore replaces the decimal, which it doesn't. The underscores are simply ignored by the PHP parser, so that 10_0.1 === 1_00.1.
You could afterwards use PHP to replace the `_` with a comma for display purposes, and I assume that is what they are trying to say.
I'm not convinced by Enums having methods. For those of you using other languages that support this, do you find them useful?
I really wish Php added support for Perl's qq and q operators sometime too (1) It would really make writing scripts a lot easier and cleaner. (1) https://stackoverflow.com/a/41334570/1031454
I personally think it looks broken and wrong. For short strings I don't see the point and for multiline strings, use a heredoc.
Earlier quoted context omitted.
I personally think it looks broken and wrong. For short strings I don't see the point and for multiline strings, use a heredoc.
The reason I never use Heredoc is because you need to abandon your indentation, otherwise your tabs/spaces get included in the string. Is there a way around that?
Earlier quoted context omitted.
I personally think it looks broken and wrong. For short strings I don't see the point and for multiline strings, use a heredoc.
The reason I never use Heredoc is because you need to abandon your indentation, otherwise your tabs/spaces get included in the string. Is there a way around that?
[1]: https://www.php.net/manual/en/language.types.string.php#lang...