Crash Course in the PHP Ternary Operator With Examples

In this article, we’ll discuss the ternary operator in PHP. Along with the syntax, we’ll go through a couple of real-world examples to understand how it works. What Is the Ternary Operator? The ternary operator (? and :) is a conditional operator which allows you to execute a condition, and based on the result of… Continue reading Crash Course in the PHP Ternary Operator With Examples

How to Use cURL in PHP

Today, we’re going to explore the cURL extension in PHP which allows you to make HTTP requests from your code. Often you need to communicate with external websites in your day-to-day PHP development. Whether it’s calling third party REST APIs to fetch data or downloading resources from the external website, you want a library which… Continue reading How to Use cURL in PHP

How to Work With Cookies in PHP

You might have heard about cookies, but what exactly are they and what can we actually do with them? In this tutorial, we will focus on the basics of cookies, and learn about their functionality in various web applications and site environments. We will also learn how to work with cookies in PHP. Cookies vs… Continue reading How to Work With Cookies in PHP

Parse XML to an Array in PHP With SimpleXML

In this post, you’ll learn how to parse XML into an array in PHP. SimpleXML is a PHP extension that makes this possible. In your day-to-day PHP development, sometimes you’ll need to deal with XML content. Whether it’s exporting data as XML documents or processing incoming XML documents in your application, it’s always handy to… Continue reading Parse XML to an Array in PHP With SimpleXML

How to Connect PHP to MySQL

Do you want ot learn how to connect php to MySQL and perform different types of database operations? In this article, we’ll do just that—we’ll discuss MySQL database connectivity in PHP. PHP provides different ways to connect PHP to a MySQL database server. Until PHP 5.5, one of the most popular ways was with the… Continue reading How to Connect PHP to MySQL

Beyond Responsive for a True Mobile Friendly Website

Responsive web design has earned itself a spot in the collection of most widely used web related buzz-words joining the ranks of Web 2.0, animated GIF, flat design and skeuomorphism. Its prevalence in the world of web design is due to its popularity as the top choice for creating mobile ready websites as shown by… Continue reading Beyond Responsive for a True Mobile Friendly Website