Math and Computation

String Formatting

Downloaddate_format(format,datetime)   Returns a string formatted according to the given format string using the current or given date-time. Downloadnumber_format(n,dec,pnt,sep)   Returns a string representing the given number rounded to the given number of decimal places, with the given characters used for the decimal point and thousands seperator. Downloadspeakable_password(length)   Returns a speakable random password of the given length. Downloadstring_add_spaces(str)   Returns the given string with spaces in between each letter. Downloadstring_escape(str)   Parses all C-style escape sequences in the given string and returns the parsed string. Downloadstring_extract(str,sep,index)   Returns the element at the given index within a given string of elements. Downloadstring_left(str,num)   Returns the given number of characters from the beginning of the given string. Downloadstring_lpad(str,length,padstr)   Returns the given string padded on the left to the given length with the given padding string. Downloadstring_ltrim(str)   Returns the given string with whitespace stripped from the beginning. Downloadstring_parse(str,token,ignore_null)   Returns a ds_list containing all substrings taken from str which were seperated by token. Downloadstring_parse_number(str,token,ignore_null)   Returns the number of substrings in str seperating them with token. Downloadstring_parse_single(str,token,N,ignore_null)   Returns the Nth substring of str using token as a separator. Downloadstring_random(str,count)   Returns a string of random characters selected from the given set and as long as the given count. Downloadstring_reverse(str)   Returns the given string with the characters in reverse order. Downloadstring_right(str,num)   Returns the given number of characters from the end of the given string. Downloadstring_rpad(str,length,padstr)   Returns the given string padded on the right to the given length with the given padding string. Downloadstring_rpos(substr,str)   Returns the right-most position of the given substring within the given string. Downloadstring_rtrim(str)   Returns the given string with whitespace stripped from the end. Downloadstring_shuffle(str)   Returns the given string with characters shuffled. Downloadstring_soundex(str)   Returns the Soundex value of the given string. Downloadstring_split(str,num,break)   Returns the given string with the given break characters inserted at the given interval. Downloadstring_stagger_case(str,spaces,first)   Returns the given string with the letters in StAgGeReD cAsE. Downloadstring_trim(str)   Returns the given string with whitespace stripped from the beginning and end. Downloadstring_ucfirst(str)   Returns the given string with the first character capitalized. Downloadstring_ucwords(str)   Returns the given string with each word capitalized. Downloadstring_wordwrap(str,num,break,cut)   Returns the given string with the given break characters inserted between words at the given interval.

Comments? Click to Comment