Category: PHP

How to send HTML Form array inside array in codeigniter using Ajax

Now, when you simply submit your form the normal way, your browser takes care of sending HTML input arrays inside array with ease and you can begin to segment your data on your server. This was an interesting complication that I ran into while making a form with dynamic related form fields. View Code JavaScript […]

PHP array_search() Function

The array_search() function is used to search the array against the given value. The function returns the first corresponding key if successful. Returns the key of a value if it is found in the array, and FALSE otherwise. If the value is found in the array more than once, the first matching key is returned. […]

PHP array_filter() Function

The array_filter() function passes each value of a given array to a user defined function. If the user defined function allows, the current value from the array is returned into the result array. Note: The function Iterates over each value in the array passing them to the callback function. If the callback function returns true, […]