fork(1) download
  1. <?php
  2.  
  3. $matches = array();
  4. # Executa expressao
  5. $string1 = 'string(10) "CURITIBA" string(11) "SP"';
  6. $pattern = '/"(.*?)"/';
  7. preg_match_all($pattern, $string1, $matches);
  8. echo $matches[1][0];
  9. echo $matches[1][1];
  10.  
Success #stdin #stdout 0.02s 24508KB
stdin
Standard input is empty
stdout
CURITIBASP