A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/efun/explode


Name: explode - split up a string into an array

Syntax:
	string *explode(string str, string delimiter)

Description:
	Return an array of strings, created when the string 'str' is splitted
	into substrings as divided by 'delimiter'.

Return value:
	Returns an array of strings.

Note:
	The 'str' need not to end with a delimiter to get all substrings!!
	This page here was wrong! See examples below (see NOT:).
		\Kiri 2015.04.01 (No, not an April Fool's Day prank!)

Examples:
	explode("one#two#three#", "#") would return ({ "one", "two", "three" })
	explode("one#two#three", "#") would return ({ "one", "two", "three" })
	NOT: explode("one#two#three", "#") would return ({ "one", "two" })

See also:


This page was generated in LPC

Imprint / Impressum