How to make your WordPress site more secure is probably your most important goal. Hundreds of spam bots crawling your site can make your head hurt not just once. So why just not block any of those scammers and avoid spending your time on marking as a spam posts? Well here is the quickest way to achieve it without any plugins!
Programming
Interesting articles around IT and web design.
Shorten your functions! – Arrow Functions in PHP7.4
Tired of writing anonymous functions syntax every time when you just need to pass a callback or closure? Not only the standard long syntax is confusing but it’s also hard to read and understand. Well it’s your lucky day, the short syntax is on the way to be in release code of PHP 7.4!
Read moreShorten your functions! – Arrow Functions in PHP7.4
New Typed Properties in PHP 7.4
After not great start in 2011, there is a finally confirmed Class Typed Properties to be introduced in 7.4 version. These properties could be of any available type (apart from callable and void) and introduce some limitation when using inheritance to prevent from changing the types in child’s class.
Call native C code in PHP – Foreign Function Interface
The Foreign Function Interface (FFI) is a simple way to call any native functions, access variables or create data structures defined in original C language.
Read moreCall native C code in PHP – Foreign Function Interface
Pick first or last array keys with build-in PHP 7.3 new functions
There is finally some useful 7.3 features for arrays! Introducing array_key_first()
and array_key_last()
.
Read morePick first or last array keys with build-in PHP 7.3 new functions
PHP 7.2: Encrypted ZIP files
Are you missing more WinRaR or 7zip features in PHP like using password for encrypting? Well say no more and update to PHP 7.2!
PHP 7.3 Trailing commas in function calls
The ability to have a trailing comma in arrays is already built-in, so why not have it extended to function/method parameters?
PHP 7.1: Void return types in functions and methods
Since PHP 7.1 we can start to see a real good progress with void
return types. We can now specify a null type of returned value from a function. Sometimes we may want to specify the function which should not return any value to the user.
Read morePHP 7.1: Void return types in functions and methods
PHP 5 is no longer supported version!
By the beginning of 2019, PHP will only support version of PHP 7.1 and onwards. This is probably a safe bet to moveover to that version as soon as possible as the deadline just hit on 3rd of December 2019! If you swap too late you may cause your system being vulnerable to potential bugs and insecurities.
PHP 7 Scalar Types Declarations
Learn what are Scalar Types, why do we need them and how to use new things like: String
, Int
, Float
and Bool
in all new PHP7. The PHP is no longer limited to custom objects, arrays and mixed variable typing anymore.