Randomize Array Snippets


13 April, 2013   

Load and store classes for easy use and re-usability using advanced PHP object storing.

20 October, 2012   

Create dynamic variables from a query or a list.

15 November, 2011   

Source code of C/C++ program, showing how to work with arrays.

16 November, 2013   

You can use this function when you correct a iban number in your commercial projects.

10 June, 2013   

A function that returns an array of elements based on DOM element, tag, and class name. For instance, getElementsByClassName(document, 'tr', 'info') will return an array of all "tr" tags under the document node having the "info" class.

22 May, 2013   

Example code shows how to draw a Linear Gradient

30 August, 2015   

Loads the contents of a dir an sorts them by the date of creation.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

PHP code to create a human readable string that will look more close to dictionary words, useful for captchas.

The mysql_fetch_assoc "converts" a row from a table into an associative array. The mysql_insert_array "converts" an associative array into a row in a table.

30 October, 2013   

Example code showing how to make an array of files you find

05 February, 2014   

We created a slide show that allowed the user to move through an array of images.

08 November, 2012   

This is a pretty rudimentary way to keep track of unique hits, but It works.

19 October, 2011   

An example to display Dynamic Date

22 November, 2011   

JavaScript Code to display Dynamic Date

09 July, 2011   

How to sort array in smarty template? Create sort modifier file and save it in smarty / plugins with modifier.sortby.php name use this modifier in smarty template like... {foreach item=item key=key from=$users|@sortby:"firstname"} {$item.id}-{$item.firstname} {/foreach}

06 August, 2012   

Showing how to sort array of numbers using built-in qsort

24 April, 2014   

[UNIT] Im Spreading. I posted it as learning to defend yourself.

13 October, 2015   

This function removes all duplicated lines of the given text file.

28 April, 2011   

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.