Array Dump Snippets

07 January, 2012   

ASP code example to create an Array

Find the length of the array before using it in the for function

02 February, 2013   

An array that could dynamically adjust its size for a fluctuating capacity by SunnyD

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.firstname} {/foreach}

06 August, 2012   

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