I have an array in php that looks like:
array(1 => 'Toyota', 2 => 'Corolla', 3 => '1997', 4 => '1.5L', 5 => 'Engine Parts');
how do I make it print out like:
Toyota
Toyota,Corolla
Toyota,Corolla,1997
Toyota,Corolla,1997,1.5L
Toyota,Corolla,1997,1.5L,Engine Parts
I did it before accidentally using foreach but can’t figure out how I did it.
1 Answer