Archive

Category Archives for "PHP"

How to generate a PHP Random Number?

How to generate a PHP Random Number? This is simple tutorial to generate random number in php using PHP rand function. This PHP rand function can be used to generate a random number from a minimum and maximum number limit or we can generate a complete random number. Here is the syntax of PHP rand […]

Continue reading

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