fork(1) download
  1. <?php
  2.  
  3. $howmuch="17шт / 119ml / 255грн";
  4. if (preg_match("/\d+\s*грн/ui", $howmuch, $results)) {
  5. echo $results[0];
  6. }
Success #stdin #stdout 0.01s 82624KB
stdin
Standard input is empty
stdout
255грн