Actually - good point stroke. I was looking into that the other day and it has stumped me beyond belief.
It was working in an earlier for me, but now it doesnt work consistantly. If I print the arrays before submitting to preg_replace, they are in the right order. I can even reset the pointers with ksort, but still, they come out in a different order. I have to be honest and say I have no freaking clue as to why it wouldnt be working. It could possibly be something with a version of php as I am using on local server right now and havent put it on my live server yet.
Like I said - there is no logical reason whatsoever as to why it would not replace in the order of the keys in the array... thats how its designed to work. Im putting my money on a older php bug.
|