Ok i need php help again!
lets say i have an associative array
$test=array("one"=>"1", "two"=>"2","threefourfive"=>"3,4,5");
and i actually create a coma separated list in the input (NOT an array, its just a comma separated list), is there some way to find out if the element is a scalar or a vector?
i know they are all scalars, but i want the computer to recognize "threefourfive" as a VECTOR, or convert it into a vector.
I tried explode(", " , $value); where value was derived from a foreach loop, and contains only the value.
That didnt' work, it returned each value as an array, "one" and "two" only having one element while "threefourfive" having 3. but i want one and two to still be scalars!
Help!
lets say i have an associative array
$test=array("one"=>"1", "two"=>"2","threefourfive"=>"3,4,5");
and i actually create a coma separated list in the input (NOT an array, its just a comma separated list), is there some way to find out if the element is a scalar or a vector?
i know they are all scalars, but i want the computer to recognize "threefourfive" as a VECTOR, or convert it into a vector.
I tried explode(", " , $value); where value was derived from a foreach loop, and contains only the value.
That didnt' work, it returned each value as an array, "one" and "two" only having one element while "threefourfive" having 3. but i want one and two to still be scalars!
Help!