PHP code example of satisfactory-clips-archive / querypath
1. Go to this page and download the library: Download satisfactory-clips-archive/querypath library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
satisfactory-clips-archive / querypath example snippets
// Add the attribute "foo=bar" to every "td" element.
qp($xml, 'td')->attr('foo', 'bar');
// Print the contents of the third TD in the second row:
echo qp($xml, '#row2>td:nth(3)')->text();
// Append another row to the XML and then write the
// result to standard output:
qp($xml, 'tr:last')->after('<tr><td/><td/><td/></tr>')->writeXML();