Explode ?
Hi,
is there a function that works like Explode in PHP ?
It works like that:
[code:1]
$var = "Hello I am a dumbass";
$var = explode(" ", $var);
//returns an Array:
//Index 0: Hello
//Index 1: I
//Index 2: am
//Index 3: a
//Index 4: dumbass
[/code:1]
You give the Function a string and a letter (in this case a " " <- Space)
And it will split up your string into an array...splitted by this letter
Is there any Function in C# that works like that ?
-Nova
Hi,
is there a function that works like Explode in PHP ?
It works like that:
[code:1]
$var = "Hello I am a dumbass";
$var = explode(" ", $var);
//returns an Array:
//Index 0: Hello
//Index 1: I
//Index 2: am
//Index 3: a
//Index 4: dumbass
[/code:1]
You give the Function a string and a letter (in this case a " " <- Space)
And it will split up your string into an array...splitted by this letter
Is there any Function in C# that works like that ?
-Nova