What is input validation? Most of the time input validations are done using javascript but PHP also provides us the functionality to validate the user’s input. In order to validate …
Setters and Getters in PHP
What are Setter and Getter Methods? When we declare the class members as private then we will not be able to access them from outside the class. Therefore we use …
Creating Class in PHP
What is Class In PHP? Class is a blueprint of objects or a model for objects with a fixed number of components that are called members of the class therefore …
Regular Expression Meta Characters in PHP
Meta Characters in PHP /love/ Find “love” anywhere in the string /fun and games/ Finds “fun and games” /(fun) and (games)/ Finds “fun and games”, “fun”, “games”. “fun” and “games” …
Regular Expression in PHP
When a user fills out a form, you might want to verify that the format was correct before sending the data to a database. For example, did the user enter …
Date and Time in PHP
Date() Function in PHP The date() function is used to format a local time, date, or both. Example Date and Time Formatting Options Option Description a am or pm A …
Superglobal Arrays in PHP
What is Superglobal Array? The PHP Superglobals are a handful of arrays that provide to a PHP script global access to data originating externally. Whereas PHP scripts contain variables that …
Array Functions in PHP
PHP provides some built-in functions to make array operations easy for programmers such as sorting, searching, or other array operations. Array Sorting Functions In PHP Function What It Does array_multisort() …
Two Dimensional Arrays in PHP
In PHP, two-dimensional arrays are arrays within arrays. You can think of the outer array as containing the rows and the inner arrays as containing the data cells in those …
Array in PHP
A variable that stores one value is called a scalar variable, whereas an array is a variable that can store a collection of scalars, such as an array of numbers, …
- Page 1 of 2
- 1
- 2