1
存储值我有一个字符串,它看起来是这样的:找到并从字符串
$fetched = name=myName zip=420424 country=myCountry;
// and so on, it is not an array
我从API获取这些值。
我只想要zip = 873289(事实上只有数字)。
于是我就用:
// $fetched above is the output of the function below
$fetched = file_get_contents("http://example.com");
这样,我取的内容,可以使用此代码
匹配,但我想它存储在变量,什么是功能存储匹配结果?