开发者

Parsing unstructured data

开发者 https://www.devze.com 2023-01-30 15:55 出处:网络
Here is the data i need to parse : DatePage impressionsClicksPage CTRPage eCPMEstimated earnings 2010-开发者_开发问答12-11542 173.14%7.133.87 Totals 542 173.87 Averages542 173.14%7.133.87

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

精彩评论

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