Quantcast
Channel: AuthorCode » Array in PHP
Browsing latest articles
Browse All 5 View Live

Arrays in PHP

Simply an Array is a group of the data items or we can say An Array is a set of variables that all have same name. for example we can define an array Capitals to represent a set of the capitals name of...

View Article



Current() and Key() functions in PHP

Current() and Key() are the useful functions. PHP uses a pointer to keep track of which element being used by the script. We can use Current() and Keys() function to find out the value and index...

View Article

next() and prev() functions in an array of PHP

You can get the index of a new element added to an array with the help of next() function. next() and prev() functions enable us to navigate through arrays by moving the pointer to the next or previous...

View Article

How to get elements in the array that contain data in PHP – list() and each()...

We can use list() and each() function to return only the elements in the array that contain data. With the help of list() and each() functions, we can use entire contents of an array with minimum...

View Article

Sorting Arrays in PHP

PHP provides various methods for sorting arrays:sort(), asort(), rsort(), arsort() and ksort(). we will discuss each function one by one.sort() functionThis is commonly used function for sorting...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images