Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $re = '/^work_days\[(.*?)\]/';
- $str = 'work_days[not_main_vehicle][7]';
- preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
- // Print the entire match result
- var_dump($matches);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement