PHP - cut string up into smaller string

hehe, to be honest, you could've probably got most of the battle using explode. I can appreciate blastman's wanting to become more familiar with PHP before doing things the "right" way, but that seems counterproductive to me. If you want to become familiar with the language, set yourself little tests like this, but don't use it in production as you'll come back to it in 6 months and be like "wtf was I thinking?!". I know this because I've done it before.

I do understand your point, but this site I'm building is for a family member who needs it sooner rather than later so I'm kinda of having to learn on the fly. Hence why I've got the 'just get it working' attudied.

I do fully intend to come back in 6 - 12 months and rewrite as that will teach me a whole lot more!!

Also, I did try the whole json_encode and calling it from js with a URL thing but after a week of messing about I simply couldn't get it to work so i went the long way instead.

Thanks for everyones effort :)
 
Back
Top Bottom