Generate String Snippets


16 October, 2012   

MySQL code to generate random string

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

18 September, 2013   

If you don’t need human readable string, then use this function instead, which will create a random string you can use for user id’s etc.

Define allowed characters in $s and length for the string in $l

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

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....

28 June, 2012   

Function to generate soundex code for any string (usually a name). Conforms to Knuth's algorithm and the common Perl implementation.

19 April, 2015   

Merges two strings in a way that a pattern like ABABAB will be the result.

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

04 February, 2013   

This removes every instance of a space in the given string returning the new string as a string for Visual Basic

This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last character from string in PHP.

09 February, 2013   

Very simple small code to generate random password

This allows you to do String.random_alphanumeric(num) to get a random string that is num characters long. Useful for generating random identifier keys.

Passing in a simple string of text converting it to lowercase and replacing all the spaces with a dash