PHP Tutorials and Guides

Collection of PHP code tutorials and guides to make you a better developer

How to send emails using php mail

How To Send Emails Using PHP Mail

Sending emails using PHP Mail is a useful and practical skill for any web developer. In this comprehensive guide, we take you through the process of writing your first email using PHP Mail. We break down each of PHP's mail parameters one-by-one to help you understand what they all do.

Learn this dev tip
What are variable variables in php

What Are Variable Variables in PHP?

The most important syntax type in PHP, the dollar sign, is how you create a variable, but did you know you can also create variable variables in PHP? We'll learn how this is possible and why this might be beneficial.

Learn this dev tip
How to reset array keys in php

How To Reset Array Keys In PHP

Arrays in nearly all programming languages are an integral part that will make up your application. Manipulating these arrays is key to getting the most out of your application. Learn how to reset keys and values in this handy PHP guide.

Learn this dev tip
How to delete a directory in php

How to Delete a Directory in PHP

Your server's filesystem at some point in your web application lifecycle will require you to create, modify, or delete files and folders. We explore how with PHP you can remove a directory using PHP's rmdir function, along with PHP code examples.

Learn this dev tip
How to make a directory in php

How to Make a Directory in PHP

Your server's filesystem at some point in your web applications lifecycle will require you to create, modify, and delete files and folders. We explore how with PHP you can create a fresh directory using just PHP's mkdir function.

Learn this dev tip
Why does php need a server

Why Does PHP Need a Server and What is Backend Code?

PHP is a hugely popular server-side programming language used in web development. In order for it to work, it requires a server. The server is responsible for handling tasks and processes. In this guide, we will delve into the reasons why PHP needs a server and what exactly is meant by "back-end code".

Learn this dev tip
How to run a php script in cli mode only

How to Run a PHP Script in CLI Mode Only

Have you ever wanted to run a PHP script from the command line, but weren't sure how? In this tutorial, we'll walk you through the process and explain how to execute a PHP script in CLI and to ensure it cannot be executed from an HTTP request.

Learn this dev tip
Are php sessions secure

Are PHP Sessions Secure?

PHP sessions are a popular way to store per-user data, that is kept server-side. But how secure are they, and what is the best way to use PHP sessions and keep data and users safe?

Learn this dev tip

PHP is the popular open-source programming language that has powered the web since 1994. Used by millions of websites around the world, PHP is a versatile and powerful language that is used to create dynamic and interactive web pages. PHP is often used in conjunction with other open-source software, such as Apache and MySQL, to create a complete web development stack and is a great choice your website or SaaS project. In recent years, PHP has undergone significant improvements and enhancements, making it more developer-friendly and efficient than ever. In fact, over 80% of the web is powered by PHP in some form, and some of the world's most popular websites, such as Facebook who used PHP as their core programming language, before they adpated it for their business needs. Now is a great time to start learning and using PHP, and take advantage of its many benefits and features.

Looking for industry-leading PHP web development?

API development WordPress Hosting ★ and more 🐘

We use cookies to enhance your browsing experience, and analyse website traffic in accordance with our Privacy and Cookie Policy. Our cookies, including those provided by third parties, collect anonymous information about website usage and may be used for targeted advertising purposes. By clicking "Reject non-essential" you can opt out of non-essential cookies. By clicking "Accept all" you agree to the use of all cookies.

Reject non-essential Accept all