[ {"type":"NameVariable","value":"$docs"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"NameVariable","value":"$modx"}, {"type":"Operator","value":"-\u003e"}, {"type":"NameAttribute","value":"getIterator"}, {"type":"Punctuation","value":"("}, {"type":"LiteralStringSingle","value":"'modResource'"}, {"type":"Punctuation","value":","}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"["}, {"type":"LiteralStringDouble","value":"\"parent\""}, {"type":"Text","value":" "}, {"type":"Operator","value":"=\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralNumberInteger","value":"84"}, {"type":"Punctuation","value":"]);"}, {"type":"Text","value":"\n\n"}, {"type":"NameVariable","value":"$n"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralNumberHex","value":"0x21"}, {"type":"Text","value":" "}, {"type":"Operator","value":"+"}, {"type":"Text","value":" "}, {"type":"LiteralNumberInteger","value":"1_000"}, {"type":"Punctuation","value":";"}, {"type":"Text","value":"\n"}, {"type":"NameVariable","value":"$n2"}, {"type":"Text","value":" "}, {"type":"Operator","value":"="}, {"type":"Text","value":" "}, {"type":"LiteralNumberFloat","value":"1e3"}, {"type":"Punctuation","value":";"}, {"type":"Text","value":"\n\n"}, {"type":"Keyword","value":"foreach"}, {"type":"Punctuation","value":"("}, {"type":"NameVariable","value":"$docs"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"as"}, {"type":"Text","value":" "}, {"type":"NameVariable","value":"$doc"}, {"type":"Punctuation","value":"){"}, {"type":"Text","value":"\n "}, {"type":"NameVariable","value":"$q"}, {"type":"Operator","value":"="}, {"type":"NameVariable","value":"$doc"}, {"type":"Operator","value":"-\u003e"}, {"type":"NameAttribute","value":"content"}, {"type":"Punctuation","value":";"}, {"type":"Text","value":"\n "}, {"type":"NameVariable","value":"$doc"}, {"type":"Operator","value":"-\u003e"}, {"type":"NameAttribute","value":"set"}, {"type":"Punctuation","value":"("}, {"type":"LiteralStringDouble","value":"\"content\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":" "}, {"type":"NameOther","value":"preg_replace"}, {"type":"Punctuation","value":"("}, {"type":"LiteralStringDouble","value":"\"/Some value/i\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":" "}, {"type":"LiteralStringDouble","value":"\"Replacement\""}, {"type":"Punctuation","value":","}, {"type":"Text","value":" "}, {"type":"NameVariable","value":"$q"}, {"type":"Punctuation","value":"));"}, {"type":"Text","value":"\n "}, {"type":"NameOther","value":"print_r"}, {"type":"Punctuation","value":"("}, {"type":"NameVariable","value":"$doc"}, {"type":"Operator","value":"-\u003e"}, {"type":"NameAttribute","value":"content"}, {"type":"Punctuation","value":");"}, {"type":"Text","value":"\n "}, {"type":"CommentSingle","value":"// $doc-\u003esave();\n"}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"}, {"type":"CommentSingle","value":"// some comment\n"} ]