php Ayrı dize tırnak

0 Cevap php

Aşağıdaki kod bana bu Eroor veren tutar

  "Parse error: syntax error, unexpected T_VARIABLE in ..."

?

   $query_string = 'this is a test... "this is in quotes" mmm..chicken burgers... yummm...';
   preg_match_all("/\".*\"|[^\s]*/",  ­ $query_string, $matches);
   echo "Matches:";
   foreach($matches[0] as $token) {
          echo $token . "<br />";
   }

Bu web page dan

Teşekkürler

0 Cevap