i am trying to compare the content of 2 arrays(children and files) and i then only want to print thoes elements of "children", which does not match the elements of "files". here is my code but it wont print anything i dont know what is wrong..
First of all, you should use UBB CODE tags when you post code on this forum. These will preserve the formatting as in Kashif's post above.
Second, you should learn to think like the computer. One way to do this is to create a table with your variables. Manually go through each line of code and figure out what variables it changes and what values they are set to. In doing so, you should be able to see when a variable is set to a value that you don't expect. This will help you figure out where your problems are in your code.