Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- preg_match('/(.*)s(([^()]+))$/', 'AK-47 | Красная линия (Factory New)', $matches);
- print_r($matches);
- $result = array_map(function($a){
- return trim($a, ' )');
- }, preg_split('/(/', 'AK-47 | Красная линия (Factory New)', -1, PREG_SPLIT_NO_EMPTY));
- print_r($result);
- $result = array_map(function($a){
- return trim($a, ' ()');
- }, explode('(', 'AK-47 | Красная линия (Factory New)'));
- print_r($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement