Click to See Complete Forum and Search --> : split first comma


fernandodonster
01-25-2007, 05:45 AM
i have to split a substring from a string how do it?
my requirement is i have a variable $var =,1,4,7 out put should be like $var =1,4,7(split first comma from the value. thanz in advance

bokeh
01-25-2007, 06:11 AM
$new = substr($var,1);Better would be not to put the comma there to start with.