@ laserlight:
It's impossible to give you all of the code, because it would take me some time to explain it 2 you.
I've been debugging it for 2 days and I concluded the error occured with the type of the variable $h.
With this code I get the objects from an xml-doc and after I put the text from every object and tag into a 2 dimensional array I want to know what's the highest id I already have.
@ that point I cycle throug my array with id's and keep the highest stored in the variable $h.
Form my new object I want to add I take the highest id+1... after that I write my new object to the document.
There couldn't go much wrong because a type of a variable should automaticly change in php when +,-,/,*,... is used and that's what happens. First my highest number is a string (a numeric string) but after I do +1 it changes to an integer and then the value becomes 0. It's like the string-convert doesn't work on that string.
@ weedpacket:
-where exactly did I used the variable $0 :s
-The reason why $$highest occurs in my code is because I've been copy pasting a new name @ all the places to make the code more readable to other ppl. Just a typo.
-what adding should there be in this code?
thx already,
grtz