PHP str_contains() is born
Early 2020 there was this post on /r/PHP posing the question “With so many features added to PHP, why is there no str_contains?”. flippeeer who submitted this post is right,…
PHP backend web language
Early 2020 there was this post on /r/PHP posing the question “With so many features added to PHP, why is there no str_contains?”. flippeeer who submitted this post is right,…
The Shorthand ternary operator in PHP is a much more compressed and essentially one line equivalent to the traditional tabbed if-else comparison that can easily span several lines. The ever…
Featuring PHP OOP design with injection safe PDO MySQL queries, this easy to read class for a user registration, login and logout system serves as a backbone to any user/account…
Occasionally you will get a string that is longer than what you designed for, this gets fixed by printing a set amount from the string and affixing … onto the…
PHP comparison operators have == as being equal and === as being identical. This means that == has to change or convert the type to check if it is equal….
MySQL does not have a boolean column type, there is no way to systematically store true/false in a database. Except tinyint comes and saves the day. With tinyint using 1…
Creating an automated system to submit my blog posts to my subreddit using PHP and the Reddit API. The idea is every couple of hours a check will be made…
A class that has inheritance in PHP OOP is one that obtains or gets all the properties and methods from its parent class. This is useful when you need to…
Out of all operators in programming, it is the modulo operator that goes under the radar most. Perhaps this is due to a lack of need or even an understanding…
Often cURL in PHP is used to download whole webpages, another great use is downloading and saving images. Using cURL to save images is used over the file_put_content(file_get_contents()) because you…