开发者

Parsing unstructured data

Here is the data i need to parse :

Date    Page impressions    Clicks  Page CTR    Page eCPM   Estimated earnings 2010-开发者_开发问答12-11   542 17  3.14%   7.13    3.87 Totals 542 17          3.87 Averages   542 17  3.14%   7.13    3.87

and i need to extract the last value 3.87. I know this can be done very easily using awk. But are there any solutions to convert this into an array based on the space seperation ?


$arr = preg_split("/[ \\t]+/", $str);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜