2
4

1 回答 1

2

Maybe do you need something similar?

$html = 'xxx:yyyimage_17aaa:9999';
$webwords = preg_split("/([:'\n\"]+|image_17)/", $html);
print_r($webwords);

And the output:

Array
(
    [0] => xxx
    [1] => yyy
    [2] => aaa
    [3] => 9999
)
于 2013-10-30T09:09:17.877 回答