PHP: Splitting by “, ” and show

cappeahCeable

New Member
\[code\]$number = 1;$number2 = "2, 3, 4"; $searchstatus = array(" - ", "f1", "f2", "f3", "f4");\[/code\]I have this array. $number2 is like how its stored in the database. How can i split them up by \[code\]", "\[/code\] if theres more than 1(like $number) and make a echo ouput that says:\[code\]f2 and then f3 and then f4\[/code\](values to 2, 3, 4)So if its $number just echo "f1" , if theres more than 1 "entry" like $number2, echo like above^
 
Back
Top