php functions

How to insert array of data into mysql database using php

Lets say I have an Array that looks like below when output threw print_r(). So now i want to insert this array data in mysql database.  NOTE : In this array key is the name of table column . So below is the simple function to do this -  …

Difference between ISSET and EMPTY function

Every developer have confusion in there mind while they are using ISSET() and EMPTY() .He/She always confuse where he have to use ISSET function or where they have to use !EMPTY function in php. But as of now no one have confusion in there mind becau…

How to Delete first or last index and value of an array using PHP

If you want to delete first or last element of array .Then you can use two very useful php functions 1- array_shift() --- It delete the first index and value of an array. 2- array_pop() --- It delete the last index and value of an array. Example…

How to get only not null array index and value in php

I want to count the total number of element of an array.But my problem is that when i am counting the element of array using count() or sizeof() function then its also count that index which value is empty . My array is below :-- Array ( [sea…

Load More
That is All