请原谅我,因为我是一位新手程序员。我如何在PHP中将生成的$ matches(preg_match)值与第一个字符剥离到另一个变量($ funded)中?你可以看到我有什么:如何将preg_match_all变量赋值给有价值的
<?php
$content = file_get_contents("https://join.app.net");
//echo $content;
preg_match_all ("/<div class=\"stat-number\">([^`]*?)<\/div>/", $content, $matches);
//testing the array $matches
//echo sprintf('<pre>%s</pre>', print_r($matches, true));
$funded = $matches[0][1];
echo substr($funded, 1);
?>
我不确定你在问什么。如果您提供一些样本输入和样本所需输出,它可能会有所帮助。 – Trott 2012-08-11 01:35:22