Functions in PHP

A function is a block of code that can be used many times in a program. It helps us to save a lot of codes and time because function defines only one time and we can use it multiple time whenever & wherever we want. The most important reason for using function is ‘Reusability’. Consider … Read more

Crud operations in PHP using mysqli and PHPMyAdmin

PHP MySQL CRUD involves the connection of PHP with the MySQL database and performing Create (Insert), Read (Select), Update (Modify), and Delete Operation on the table. PHP and MySQL connectivity is a very important topic while learning PHP here step by step PHP and MySQL connectivity and creat update delete and read operations are discussed using … Read more

Array in PHP

An array is a data structure or a collection of data that contains a group of elements under same name. Typically these elements are all of the same data types or different data types. for example:If a complex has thirty flats each flat having same features then the whole complex is considered to be an … Read more

XAMPP export database: Export & Import MySql Database in phpMyAdmin

XAMPP export database: Export and Import MySql Database is very easy anyone can easily import and export it. First, let us see how to export the database from phpMyAdmin XAMPP export database from phpMyAdmin Follow these steps to export Mysql Database How to import the database in PHPMyAdmin XAMPP is the same as below how … Read more

PHP Strings Functions

Searching & Replacing String Write any some logical PHP program you need to search some text for a particular chunk of string. Like, need to know the domain name of user email id or want to know the current page name from page URL. In PHP language there are some pre-define function to search particular … Read more

How to use CKEditor in PHP Installation and Uses

Here we will discuss what is CKEditor and How to use CKEditor in PHP how to install CKEditor and How to use it. What is CKEditor? It is a Modern JavaScript rich text editor. It provides the perfect WYSIWYI UI for creating semantic content. CKEditor5 is written in ES6 with MVC Architecture. CKEditor provides rich … Read more

PHP Working with Directories

Handle a directory there are several functions in PHP language. i. mkdir() ii. opendir() iii. readdir() iv. scandir() v. rmdir() vi. closedir() i. Create Directory Want to create a new folder using PHP then use mkdir(). Only one argument is required the folder name or folder location where want to create the folder. Example

Read more

How to remove special characters from string in PHP

Characters other than alphabet [A-Za-z] and digits [0-9] are known as special characters like symbols & ^ % @. Removing special characters from PHP string is very easy by using php library functions like preg_replace() str_replace() Lets see them one by one Using preg_replace() to remove special characters from string in PHP PHP provides preg_replace() … Read more

PHP Switch Case Statement Syntax and Example

This statement is used if one needs to select one from multiple options. PHP Switch Case Syntax: switch (x) { case label1: code to be executed if x=label1; break; case label2: code to be executed if x=label2; break; case label3: code to be executed if x=label3; break; … default: code to be executed if x … Read more