str_replace($search,$replace,$subject)
All instances of $search are replaced with $replace in $subject.
// Will print to screen: "Why is the sky blue?". echo str_replace("red","blue","Why is the sky red?")
June 2024
Here’s detailed look at some of the most popular PHP frameworks, each of which can help speed up development, improve code organisation, and enhance application...
March 2024
As PHP continues to evolve, so do the threats that target its vulnerabilities. Ensuring robust PHP security practices is paramount to safeguarding sensitive data and...
→ Continue reading"PHP Security in 2024: navigating the evolving landscape"
December 2022
Laravel is a powerful and popular PHP framework designed to make web development easier and more efficient. This quick start guide will help you set...
→ Continue reading"Quick start guide for Laravel on a PHP server"
August 2021
This PHP function accepts a public Google Sheets URL and converts it into a PHP array. You can use the array to either display the...
March 2021
The following post will explain how to use PHP/cURL to retrieve data in JSON or XML and process it for using in your PHP application...
February 2021
The roll out of 3D Secure 2 has been a long drawn-out process not helped by the COVID–19 pandemic. Part of the update has included...
→ Continue reading"Global Payments: Strong Customer Authentication (SCA) and 3D Secure 2"