Skip to content

Instantly share code, notes, and snippets.

View stepun's full-sized avatar

Aliaksei stepun

  • Store & Cash
  • PHP developer
View GitHub Profile
public function parseTest()
{
$reader = new XMLReader();
$reader->open($this->getXml(), $this->_getEncode($this->getXml()));
while ($reader->read()) {
switch ($reader->nodeType) {
case (XMLREADER::ELEMENT):
if ($reader->localName == "offer") {
$id = $reader->getAttribute("id");
file_put_contents('1_ids.txt', $id . chr(13), FILE_APPEND);
nbproject
._*
.~lock.*
.buildpath
.DS_Store
.idea
.project
.settings
composer.lock
vendor/bin