Part of string -> Array
Posted: Mon Jul 27, 2009 5:44 pm
Hello!
I've got a little problem with string -> array.
I have a string and I want that some parts of it becomes an array, in the string there are keywords it should react to.
Example:
I've got no idea on how to do this so abit of a push in the right direction would be great!
Thanks!
//Emil
I've got a little problem with string -> array.
I have a string and I want that some parts of it becomes an array, in the string there are keywords it should react to.
Example:
Code: Select all
String: weeee<tis>Into array 1</tis>someandomtext<tis>Into array 2</tis>morerandomtext<tis>Into array 3</tis>andsomemore
Output array:
Array
{
[0] => "Into array 1"
[1] => "Into array 2"
[2] => "Into array 3"
}Thanks!
//Emil