<?php
$line = "2013-08-14 23:43:45;https://www.tcsbank.ru/credit/form/?utm_source=actionpay_apr_cc&utm_campaign=creditcard&utm_medium=aft.apr&utm_content=&wm=50945&sid=13c56c66-b5f3-8fef-f5ba-01407e5afe5b&actionpajh.50945;3168";
$xplodet = explode(';', $line);
$pos = strrpos($xplodet[1], '=');
if ($pos === false)
continue;
$start = $pos + 1;
$xplodet[1] = substr($xplodet[1], $start);
print_r($xplodet);
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
- Array
(
[0] => 2013-08-14 23:43:45
[1] => 13c56c66-b5f3-8fef-f5ba-01407e5afe5b&actionpajh.50945
[2] => 3168
)
preferences:
246.77 ms | 1388 KiB | 163 Q