array_push() and array_merge() – Append Into Array In PHP

array_push() and array_merge() - Append Into Array In PHP

PHP provides the array in order to store multiple items in a single variable. Array items can be provided during the array definition but can be also added later by using the array_push() method. In this tutorial, we will learn how to append new items into an array. array_push() Syntax The array_push() method has the … Read more

Encode JSON with json_encode() In PHP

Encode JSON with json_encode() In PHP

JavaScript Object Notation or JSON is a simple data-interchange format that is created openly. Today a lot of applications use JSON to transfer data between server and client. As a server-side programming language PHP provides JSON related functions. In order to encode a JSON data the json_encode() function is provided by PHP. PHP uses the … Read more

How To Install PHP In Ubuntu, Debian, Mint?

How To Install PHP In Ubuntu, Debian, Mint?

PHP is popular programming and scripting language which is created 30 years ago it gained popularity with the web and mainly used to create web applications. Even the PHP provides support for different platforms and libraries the main usage is creating web applications. Linux and especially Ubuntu is popular distributions for web servers. PHP applications … Read more

How To Convert Array Into String In PHP?

How To Convert Array Into String In PHP?

PHP arrays are used to store different types of multiple dates into a single variable. PHP arrays can also store multiple string type items. In some cases, we may want to convert multiple string array items into a single string. PHP programming language provides different methods to convert an array into a string. Convert Array … Read more

How To Install PHP 7 On Ubuntu (Debian, Mint)?

How To Install PHP 7 On Ubuntu (Debian, Mint)?

PHP is a popular programming language that is generally used to do develop web applications. Even it can run on different platforms like Windows, MacOS, Unix, etc. the most popular platform and operating system family for PHP is Linux. PHP can be installed on Linux distributions like Ubuntu, Debian, Mint in different ways. Command-line apt … Read more

PHP list() Function Tutorial – Convert Array To Variables

PHP list() Function Tutorial - Convert Array To Variables

The array is an important part of the PHP and other programming languages. Arrays can store multiple items in a single structure or variable. Creatin an array from multiple items are a well-known topic but converting an array into multiple variables or items is a less known topic. The list() method can be used to … Read more

How To Write A File In PHP?

How To Write A File In PHP?

PHP programming language provides different functions in order to write files. A file is a container that contains and stores data in different formats like simple ASCII tet, binary data, XML data, etc. Even databases provide more structured and easy to use data storage functionality files can provide more simple, fast, and basic data storage … Read more

PHP header() Function Tutorial

PHP header() Function Tutorial

HTTP protocol uses the HTTP headers in order to provide information to the user browser. HTTP headers may provide information like content type, response code, timezone information, caching, etc. HTTP header is created by the web server and as a dynamic web programming language PHP provides header() function in order to add, change the HTTP … Read more