Jump to content

LiR

Newbie
  • Posts

    1
  • Joined

  • Last visited

LiR's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. LiR

    preg_replace_callback

    class Name{ public function __construct($text) { $text = preg_replace_callback("/[0-9]+/s",array($this,'number'),$text); } private function number($p) { // какой-то код } }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy