Hi. I want my script to load a variable in my database in the form of "var1-var2-var3". How would I make it so it splits these variables up and places them in an array? (bare in mind that there won't always be 3 "var"s in the sequence) This is what I have so far:
$var="var1-var2-var3";
$array=split("-", $var);
but it doesn't seem to work.
I have also tried:
$var="var1-var2-var3";
$array=array(split("-", $var));