Search results for "array"
Array functions in PHP
You probably know that an array is a collection of variables taking up the same space. In PHP an array has the same meaning like in other programming languages. Here is an example of representing an array: $fruits[ ];
Merging arrays
You can merge two arrays easily using array_merge function. Here I have the two arrays:
<?php$fruits = array(1 => ...
PHP - String Explode/Implode
PHP - String Explode
Explode is a PHP function which let as divide a string into smaller pieces. For example, if you need the words from a sentence you can call explode to divide it using the space delimitation. The great part is that the result will be stored in an array.
The first argument that explode takes is the delimiter which is used to divide ...
Upload files using PHP
PHP is "kind" with us when it comes to sending something to the server; being able to upload files it is not big deal. To upload a file means you can copy files from a client computer to the remote server. To handle the files, PHP offers the $_FILES array. This array will contain all the uploaded file information. We will use ...
Display a random image same all day
You probably many times displayed images from a folder choosing one at random. That is known as a image rotator script. There are many available over the WWW, but very few of them ( if there is any) does rotate the images in a specific way: a picture is displayed for a whole day, and not a new one each time it loads.
So how can I achieve that?
Well is ...

RSS/XML