Generate Array Snippets


16 October, 2012   

MySQL code to generate random string

11 May, 2013   

Generate CAPTCHA images for form validation without any outside library's or plug-ins

* Code to generate spiral matrix for n elements where n >= 1 * To generate spiral matrix for n elements just * Change the value of MAX to whatever u want :)

C+ source code for Generate a spiral matrix for n elements

14 May, 2012   

How to generate SYNONYMS SQL

04 December, 2011   

Example of If Statement in python

To generate numbers of the form 2^i * 3^j * 5^k

This basic snippet will create a random authentication code, or just a random string.

02 February, 2013   

Example code for Generic Array To String Function

Convert a coordinate (x,y) into the index for a 1D array. For example, the coordinate (3,1) would be at array index 8 if there are 5 columns. Assumption: Arrays start at 0.

05 December, 2012   

The function accept 3 parameters: the data, the csv delimeter (default is a comma) and the csv enclosure (default is a double quote).

01 July, 2015   

Loads and saves a compressed dump of an array

01 February, 2011   

Associative Array Syntax

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

19 February, 2013   

PHP is_assoc_array function to check if given array is associative or not

01 April, 2015   

PHP code example for using the array_walk function to format an array.

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.

06 June, 2011   

This reorders the elements of an array into a random order.

02 March, 2013   

How to resize an array in Java