<?php
$str = 'vid..0002-3f3c-458c-8000__vpid..e29ac000-8020-395e__caid..8ff77872-a0cb-4d7c-a36c0bd6__rt..D__lid..a1b926-17da-45b8-8bfc-32464ba72cdd__oid1..7ef55782-6c4b-414e-b7b9-faa2d55b32e1__oid2..a2292a00-31ce-4366-b6c6-72a0204b38be__var1..%7Bname%7D__var2..MLPUBID__var3..%7Bheadline%7D__var4..%7Bimage%7D__var5..%7Badid%7D__var6..%7Bad%7D__var7..%7Bage%7D__rd..__aid..__sid..';
$split = explode('__', $str);
$results = array_map(function($e){
return explode('..', $e);
}, $split);
print_r($results);
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
- Array
(
[0] => Array
(
[0] => vid
[1] => 0002-3f3c-458c-8000
)
[1] => Array
(
[0] => vpid
[1] => e29ac000-8020-395e
)
[2] => Array
(
[0] => caid
[1] => 8ff77872-a0cb-4d7c-a36c0bd6
)
[3] => Array
(
[0] => rt
[1] => D
)
[4] => Array
(
[0] => lid
[1] => a1b926-17da-45b8-8bfc-32464ba72cdd
)
[5] => Array
(
[0] => oid1
[1] => 7ef55782-6c4b-414e-b7b9-faa2d55b32e1
)
[6] => Array
(
[0] => oid2
[1] => a2292a00-31ce-4366-b6c6-72a0204b38be
)
[7] => Array
(
[0] => var1
[1] => %7Bname%7D
)
[8] => Array
(
[0] => var2
[1] => MLPUBID
)
[9] => Array
(
[0] => var3
[1] => %7Bheadline%7D
)
[10] => Array
(
[0] => var4
[1] => %7Bimage%7D
)
[11] => Array
(
[0] => var5
[1] => %7Badid%7D
)
[12] => Array
(
[0] => var6
[1] => %7Bad%7D
)
[13] => Array
(
[0] => var7
[1] => %7Bage%7D
)
[14] => Array
(
[0] => rd
[1] =>
)
[15] => Array
(
[0] => aid
[1] =>
)
[16] => Array
(
[0] => sid
[1] =>
)
)
preferences:
109.59 ms | 414 KiB | 5 Q