Readable String Snippets


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

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.

04 October, 2012   

Turn a string into a readable url

27 May, 2015   

A very common task is converting a number of bytes into something for human digestion.

07 April, 2013   

Search a body of text for the most common words

14 June, 2015   

This function helps you checking a UNIX timestamp with human readable time formats like 1m, 2d or 4y.

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

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.

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

PL/SQL functions returns a scalar value and PL/SQL procedures return nothing. Both can take zero or more number of parameters as input or output. The special feature about PL/SQL is that a procedure/function argument can be of input (indicating the argument is read-only), output (indicating the argument is write-only) or both (both readable and...

28 February, 2013   

This function takes a string and an output buffer and a desired width.

Very useful Java code snippets for Java developers - Converting Strings to int and int to String

05 August, 2015   

Shows how to access the HTTP headers from a given web adress.

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.