How to create an array from PHP string? Explain with example?

we can create an array from php string with the help of str_split( ) function in PHP, str_split() is an inbuilt function in PHP and is used…

Read More

How to check a key exist in array? Explain with example?

We can check a key exist or not in an array with the help of array_key_exist() function in PHP. array_key_exists() function checks an array for a specified…

Read More

What is the difference between array_merge and array_combine?

array_merge() Function  The array_merge() function is used to merge two or more arrays into a single array. This function is used to merge the elements or values…

Read More

How to get number of element in an array? explain with example?

We can get total number of elements in an array by using count() and sizeof() functions. Count() Function The count() function is used to get the total number of…

Read More

What is Array in PHP? Write down top 10 real use cases of Array in programming?

Arrays are collection of data items stored under a single name. It provide a mechanism for declaring and accessing several data items with only one identifier, thereby…

Read More

How to create an empty array in PHP? Explain with example?

array() function is use to create an array in our PHP and php supports three types of array- index array= it has index values associative array= it…

Read More

What are the types of array? Explain with example?

We have three types of array in PHP Index arrays associative arrays multidimensional arrays 1. Index Array (Numeric Array) These arrays can store numbers, strings and any…

Read More

How to traverse array in PHP and print?

the most common task with arrays is to do something with every element for instance, sending mail to each element of an array of addresses, updating each…

Read More

What is an Array & its cases to use in PHP?

arrays is a type of data structure that allows us to store multiple elements of similar data type under a single variable. the arrays are helpful to…

Read More

How can we run PHP on a Local Server?

Through the development environment, how can we run the PHP code on a local server? Before running the PHP file, you should have your own pc setup…

Read More

What is loop in PHP and what is for loop in PHP?

Loop in PHP is used to execute a statement or a block of statements, multiple times until and unless a specific condition is met. This helps the…

Read More

What is Development Environment for PHP? Overview

If you want to write PHP code, which type of development environment you should have regarding PHP coding? The first requirement is pc/laptop and you can do…

Read More

What are cookies in PHP, How we can use?

 Cookies in php is a small file with a maximum size that the web server stores on the client computer. they are typically used to keep track of…

Read More

What is PHP and how it works?

Today, we are going to discuss on powerful programming language about PHP. you would have heard about lots of tools and programming languages and their different working…

Read More

What is CURD operations ?

CURD = CREATE-UPDATE-READ-DELETE These four operations are used to manipulate the data in database,  users must be able to create data, read data, update or edit the…

Read More