<?php
use Funch\ReStatic as Re;
$text = 1234;
echo Re::pattern('12')
->subject($text)
->replace(56); // 5634
print_r(
Re::subject([
$text,
'hello, PHP'
])->replace([
'/12/' => '00',
'/php/i' => 'China'
])
);
// Array
// (
// [0] => 0034
// [1] => hello, China
// )
-
Notifications
You must be signed in to change notification settings - Fork 0
fjc0k/Re
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|