Jump to content

Swap nodes


Beta1.0

Recommended Posts

yeah, read it by lines, and you have an array called say $lines = explode("\n",$file);

then simply use array tools to replace the rows you want with the rows you want and rewrite the file.

 

This sounds generic, but just look at fopen/fwrite tutorials, don't let the idea of it being an xml doc make you treat it any differently than a .txt file

 

Link to comment
https://forums.phpfreaks.com/topic/75737-swap-nodes/#findComment-383303
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.