Archive

Category Archives for "PHP"

PHP Array Push

PHP Array Push function is used to Push one or more elements onto the end of array. You can add one value or any number of values of values to an array at the end using Array Push PHP function. Array Push accepts two arguments first argument is the array to which you want to […]

Continue reading

PHP Array to String

PHP Array to String conversion, if you want to convert an array into string then you can achieve this by using implode function. Or if you wan to create any specific string from an array then read this article Automating process of forms and generating sql queries in PHP, in that article by using implode […]

Continue reading

PHP Array Merge

PHP Array Merge is used to Merge one or more arrays, array_merge takes two or more arguments, first argument is the array and second argument is the array to merge. If two or more array elements have the same key, the last one overrides the others. If you passing only one array to the array_merge() […]

Continue reading

PHP Multidimensional Array

PHP Multidimensional Array means if an array presents inside another array then its called two dimensional array. Three-dimensional array is an array containing array of arrays. If you want to learn about basic of array and different types of array, then read this article on PHP Array. Here I’ll create upto three dimensional array, I’ll […]

Continue reading

PHP Array

PHP Array is an array that stores one or more types of values in a single array. In other words An array is a special variable, which can hold more than one value at a time. For example if you want to store 50 names then instead of defining 50 variables its easy to define […]

Continue reading

PHP Array Search

PHP Array Search will Searches the array for a given value and returns the corresponding key if successful. Array Search PHP function will accepts three arguments, first argument is the value to search in array, second argument is the array to search, third argument is STRICT If the third parameter strict is set to TRUE […]

Continue reading

PHP Array Length using count or sizeof

PHP Array Length can be measured by using either count function or sizeof function in php. both functions will work same, sizeof function is an alias of count function. By using this count function in PHP, you can measure PHP Array Length. Counts all elements in an array, or something in an object and returns […]

Continue reading

Creating user defined php functions

Creating user defined php functions, this is not about built-in PHP functions, this is about creating user defined custom functions. Function is a block of statements that we can reuse them in other places. Function’s will not executed immediately on page load. These functions will be executed after calling them. We can use these functions […]

Continue reading