how to put data from database directly to array? for example i will get a data from my database like this "a,b,c,d" is there a way of putting the data in the array without looping? because what i did is i use substr() function and one by one i put it to array and the " , " is my sign that the data should be put to array.
just like this
for ($ctr=0; $ctr<=strlen($string); ++$ctr)
if ( $tmpStorage!=",")
$ExplodedString=$ExplodedString . $tmpStorage;
=>a for $array
=>b for $array
=>c for $array
=>d for $array
if there any other way to do this that will make the program more faster, because my program is more on parsings. pls share your knowledge. thanks in advance...