Category: PHP

PHP next() Function

The next() function is used to advance the internal array pointer. next() behaves like current(), with one difference. It advances the internal array pointer one place forward before returning the element value. Returns the value of the next element in the array on success, or FALSE if there are no more elements Parameter Description array […]

How to create array and insert record in mysql database using Codeigniter

I’ll share to you very basic tutorial with codeignter,here is inserting data toyou database.Oke make it simple,first of all you must create a table in your database obviously after create form and save create array and save data in database table. You may also like How to Add, Edit and Delete Records Using jQuery, Ajax, PHP […]

How to Read XML file Using PHP

XML is the acronym for Extensible Markup Language. SimpleXMLElement is an extension that allows us to easily manipulate and get XML data. SimpleXMLElement turns an XML document into a data structure you can iterate through like a collection of arrays and objects. You may also like How to Create Dynamic XML Sitemap in PHP and How to create […]

PHP asort() Function

The asort() function sorts an associative array in ascending order, according to the value. Tip: Use the arsort() function to sort an associative array in descending order, according to the value. Tip: Use the ksort() function to sort an associative array in ascending order, according to the key. Parameter Description array Required. Specifies the array to sort […]

PHP array_uintersect() Function

The array_uintersect() function compares two or more arrays, in a user-made function, and returns an array containing the elements from the first array, if the user-made function allows it. The user-made function compares array values, and returns a numeric value, 0 if the returned array should contain this element. Parameter Description array1 Required. The first […]