How to convert array data into Simple XML file using PHP

array to xml conversuion

Hello Buddy, In this post we’ll get the knowledge about how to convert array data into Simple XML file using php code. Most of times we want to get data as a XML format but we get data into array format. For  this, we’ll go to convert the array data into Simple XML file. During this tutorial we’ll discuss, the way to produce XML from array in php. We have to create an easy script to convert Any PHP array data file into XML file. You’ll simply generate XML file from…

Read More

Types of Array

types of array

Array is the collection of   keys and values. The key can either be an integer or a string. The value can be of any type. This is usually done for single-line arrays, i.e. array(1, 2) is preferred over array(1, 2, ). For multi-line arrays on the other hand the trailing comma is commonly used, as it allows easier addition of new elements at the end. Types of array 1.single 2. two dimensional 3. multi- dimensionnal 1. single dimensional array:

2. two dimensional array:

3. mutli-dimensional array:

you can…

Read More

PHP Array Function

Here is the list of PHP array functions sizeof () :- This function is used to count the items of the array. (count() is also used instead of this).   Example:  

explode () :- This function is used to explode the string into an array. Example:-

implode () :- This function is used to convert the array into a string. Example:

Range () :- This function allows us to get the range of numbers such as 1,10 or 1,100 etc.. We need to specify two points.…

Read More