fork download
  1. <?php
  2.  
  3. $string = "aaa =bbb ccc ddd eee= zzz";
  4. $matches = preg_split('/ /', preg_replace('/^.*?=|=.*?$/', '', $string));
  5. print_r($matches);
  6.  
  7.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Array
(
    [0] => bbb
    [1] => ccc
    [2] => ddd
    [3] => eee
)