File: php.actual

package info (click to toggle)
golang-github-alecthomas-chroma 0.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,652 kB
  • sloc: python: 426; javascript: 79; makefile: 34; sh: 32
file content (12 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
$docs = $modx->getIterator('modResource', ["parent" => 84]);

$n = 0x21 + 1_000;
$n2 = 1e3;

foreach($docs as $doc){
    $q=$doc->content;
    $doc->set("content", preg_replace("/Some value/i", "Replacement", $q));
    print_r($doc->content);
    // $doc->save();
}
// some comment