PHP: Read Only Attributes
·
Like in JavaScript, sometimes you want an object property in PHP to be read-only. This is pretty easy to set up!
·
Like in JavaScript, sometimes you want an object property in PHP to be read-only. This is pretty easy to set up!
·
One of the things I miss most from my C# coding days is output parameters.
·
Few PHP developers know how to manipulate arrays using PHP’s built-in functionality. Here are three powerful applications of this function set and why you should use them in your code.
·
If you’re writing PHP code and you want to use lambda functions, don’t use PHP’s create_function() method. It’s insecure, and will be flagged as such by security software and analysts.
·
What if a visitor uploads a file that’s too large for your system to handle?
·
We often leave one place for another, still harboring the hope that we can one day return and pick things up where we left them.
·
When I explain to people that I enjoy writing code in C# more than PHP, they scratch their collective heads and, with a quizzical look, always respond, “why?” My biggest reason: I really enjoy working with parallel processing.
·
Last year, I had the opportunity to present at jQuery Portland about unit testing. It was my first non-WordPress speaking event, and it was incredible!
·
Some of the products I build for the web don’t come with a website. But I can still use Google Analytics to track their usage. Thanks to a handy PHP library I found on GitHub, I now have the luxury of tracking the execution of server-side scripts in the same analytics dashboard I use to…
·
Last time, I argued in favor of the Singleton pattern in WordPress. Singletons make sense in WordPress specifically for several reasons: They live in the global scope without using the already abused/overused [cci]global[/cci] keyword As a distributed application maintained by several hundred developers, they prevent problems that likely arise from others misusing your code But