0

xml ドキュメントを読み込んで、(FDS) を含むすべてのコンテンツを除外しようとしています。

私のコードは次のようになります。

<?php
     $xml = simplexml_load_file('http://outfits.zwinky.com/users/220/287/_perverted/purchased.xml');

     $pattern = '/zwinky/fds/[^"]*';
     $subject = '$xml';
     preg_match     ( string $pattern    , string $subject    [, array $matches    [, int $flags = 0    [, int $offset = 0   ]]] )
     print_r($matches);?>

私が間違っていることは何ですか?

4

1 に答える 1