I recently revisited some of the earliest web code I ever wrote, which was in PHP 5.5 (about 7 years old, I think). I wasn't surprised by all the mistakes I made, both from being a newbie programmer and from making what I think were fairly easy-to-make PHP mistakes. After all, every tutorial I could find back then used mysql, didn't used real_escape_string, etc. What was surprising was how hard I had to dig now, 7 ye…
PHP 7.3.0 alpha 1 Released
21–30 of 49 posts
Re: PHP 7.3.0 alpha 1 Released
#22I recently revisited some of the earliest web code I ever wrote, which was in PHP 5.5 (about 7 years old, I think). I wasn't surprised by all the mistakes I made, both from being a newbie programmer and from making what I think were fairly easy-to-make PHP mistakes. After all, every tutorial I could find back then used mysql, didn't used real_escape_string, etc. What was surprising was how hard I had to dig now, 7 ye…
Re: PHP 7.3.0 alpha 1 Released
#23Earlier quoted context omitted.
I don't speak for the parent (and I don't think the assertion is correct), but I will say that PHP jobs outside the valley are plentiful. A large percentage of those are legacy maintenance or development on unpleasant platforms such as WordPress or Magento, but there is still a lot of challenging and enjoyable work being done using PHP, and the improvements to the language over the last few years have made many of th…
I'm asking about salary ranges specifically.
[0] https://insights.stackoverflow.com/survey/2018/#work-salary-...
Re: PHP 7.3.0 alpha 1 Released
#24Earlier quoted context omitted.
I don't speak for the parent (and I don't think the assertion is correct), but I will say that PHP jobs outside the valley are plentiful. A large percentage of those are legacy maintenance or development on unpleasant platforms such as WordPress or Magento, but there is still a lot of challenging and enjoyable work being done using PHP, and the improvements to the language over the last few years have made many of th…
I'm asking about salary ranges specifically.
Re: PHP 7.3.0 alpha 1 Released
#25Notable New Stuff in Core - list() Reference Assignment https://wiki.php.net/rfc/list_reference_assignment this allows using list() function for reference assignment instead of just assigning to new variables - Flexible Heredoc and Nowdoc Syntaxes https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes This makes using HEREDOC blocks much more friendly looking for spaces/tab usages in code Other stuff Just a lot of…
Not only does it let you indent the closing marker, but however much you indent it causes that much white space to be trimmed from the enclosed text. Heredocs are now perfect.
Re: PHP 7.3.0 alpha 1 Released
#26I recently revisited some of the earliest web code I ever wrote, which was in PHP 5.5 (about 7 years old, I think). I wasn't surprised by all the mistakes I made, both from being a newbie programmer and from making what I think were fairly easy-to-make PHP mistakes. After all, every tutorial I could find back then used mysql, didn't used real_escape_string, etc. What was surprising was how hard I had to dig now, 7 ye…
https://paragonie.com/blog/2018/01/our-ambitious-plan-make-i...
Re: PHP 7.3.0 alpha 1 Released
#27what does it break from 7.2? I love how every php upgrades requires me to find mysqli-type crap that breaks all my customers' code.
. Removed support for BeOS. (Kalle)
. Removed support for ODBCRouter. (Kalle)
. Removed support for Birdstep. (Kalle)
So, if your customers are still using BeBoxes, you might have a problem.
Re: PHP 7.3.0 alpha 1 Released
#28Maybe I should take this as an opportunity to write a new app in PHP. I've been too deep into Go for awhile to have any sense for where PHP's at these days.
If you want to be cool, write Go. If you want to make money, write PHP.
Eh, if we're strictly speaking about making money, then Java is the way to go. It'll open up your career opportunities much farther than PHP.
Re: PHP 7.3.0 alpha 1 Released
#29- JSON: . Added JSON_THROW_ON_ERROR flag. (Andrea) A blessed day, prior to this, json_decode would simply return null on error.
if(null === $data = json_decode($json)) throw new Exception();