Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Substring headaches Re: Substring headaches

#114282
JoniGiuro
Participant

Why are you using an integer key for the $array ? An array already has integer keys.
sorry I didn’t notice it was posted in php and I thought you were speaking about js ($array, stupid me..), but you might be able to do pretty much the same thing with php

http://jsfiddle.net/XmjRC/

see here:
http://php.net/manual/en/function.split.php