-
Hello world in Laravel
1. Introduction In this article, we are starting to learn about Laravel. Laravel is one of the most famous PHP Framework as well as the most-starred PHP framework on GitHub. This article follows the Laravel 5.5 LTS version. Taylor Otwell develops Laravel with beautiful code and developer happiness in mind. It has a minimal learning…
-
Handling PHP Errors and Exceptions
1. Introduction In this article in this series will learn how we can handle errors and exceptions that occur when our PHP code is executed. We will learn about different types of errors and exceptions in PHP, how we can use built-in functions related to exception handling and how we can write custom error handler…
-
Databases and working with MySQL
1. Introduction In this article, we are learning about databases and how we can connect to databases using PHP programs. Databases are used as information storage components in software systems. We can connect to databases using different technologies and programming language. Let’s first understand the concept of databases thoroughly and then we will connect to…
-
PHP, HTTP, and the web
1. Introduction The majority of our web works on a client-server model which is governed by the HTTP protocol. In this article, we are having an introductory look on HTTP protocol and different capabilities of PHP related to HTTP. Also, we are exploring some of the most useful and essential functions in PHP to create…
-
Looping around in PHP
1. Introduction In this article in the series, we are learning about different types of loops. Loops are programming constructs that can be used to repeat a particular task, or in other words, we can say loops are used to execute the same block of code again and again by some pre-defined conditions. The primary…
-
Fun with conditional logic
1. Introduction In this article, we are learning about the different programming constructs that can help us in implementing conditions and to branch the execution of our programs logically. We will learn about if-else construct, switch statements and ternary operator. Let’s go through them. 2. if-else statements The if statement tests if a particular condition…
-
Operators in PHP
1. Introduction Operators allow us to perform certain operations with values, arrays, and variables. There are several different types of operators. In PHP 7, two new operators were introduced – null coalescing and spaceship operator. We have covered them as well. Let’s see different types of operators: 2. Arithmetic Operators + — Addition – — Subtraction…
-
String manipulation in PHP
1. Introduction In the last article in this series, we learned about arrays. In this article, we will learn about strings in PHP. String is a collection or sequence of characters. “Bootsity” is an example of string. Now, let’s learn more about strings. 2. Defining Strings In PHP, we can define string in multiple ways.…
-
Working with Arrays in PHP
1. Introduction An array stores multiple values of similar types in one single variable. Assume a scenario in which you want to store names of all the planets in our solar system. To store them you will need eight variables and your program will look bad. Now assume that you need to store all planets…
-
All about variables and constants
1. Introduction In the first post of this series, we learned how to write a hello world program in PHP. In this second post, we are exploring about variables and constants in PHP. In simple terms, variables are storage areas in which we store data. In the storage areas of variables data may “variate” means…