Im looking for a way to take a php array and pass the values between a couple of array keys and save into a string.
$array1 = array(0=>'sometext',
1=>'1703',
2=>'North',
3=>5th',
4=>'st',
5=>'sometext')
I know the starting key and the end key in my script
$startnum = 1;
$endnum = 4;
I need to get this
$string = '1703 North 5th st'
without changing the keys in the array because i have to iterate over the array again later. I am currently using array splice but it removes the items and key in the array so when i iterate over the array again the keys and values are all messed up. Please let me know if i need a better explanation.