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…
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…
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…
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…
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…
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…
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…
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…
Student Record in PHP
Code output Firstname Secondname DOB Course Gender semester Address E-mail shivam chourasiya 11-07-2002 BCA male 4th sem HSR layout shivu.c@gmail.com ravi kumar 12-09-2003 BBA male 2th sem…
PHP(Hypertext Preprocessor)
NTRODUCTION PHP is Hypertext preprocessor It is a server-side scripting language that is used for web development. It can be easily embedded with HTML files. HTML codes…