Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. $re = '/^work_days\[(.*?)\]/';
  2. $str = 'work_days[not_main_vehicle][7]';
  3.  
  4. preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
  5.  
  6. // Print the entire match result
  7. var_dump($matches);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement