turning 1234 into 1,2,3,4
Is there some easy way to do this?
Without taking the string lenght and looping through with an if statement to deal with the last number
turning 1234 into 1,2,3,4
Is there some easy way to do this?
Without taking the string lenght and looping through with an if statement to deal with the last number
$view = '1234';
$view = substr(chunk_split($view, 1, ','), 0, -1);
just learned 2 new functions