PHP Tutorials


Category Archives for "PHP"

How to set PHP datetimezone?

How to set PHP datetimezone? If you are working with PHP datetime, then probably you need to need to set datetimezone in your configuration file or at the top of the file where you are using datetime php function. This PHP datetimezone sets the time zone where you are working, and we can also set […]

Continue reading

PHP Reverse Array

PHP Reverse Array is used to Return an array with elements in reverse order. Reverse Array accepts two parameters, first parameter is the array and it is mandatory. Second parameter is preserve keys, If set to TRUE numeric keys are preserved. Non-numeric keys are not affected by this setting and will always be preserved. And […]

Continue reading

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