was.php – Blame information for rev 10
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
10 | office | 1 | <?php |
2 | |||
3 | ########################################################################### |
||
4 | ## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## |
||
5 | ########################################################################### |
||
6 | function wasKeyValueGet($key, $data) { |
||
7 | return array_reduce( |
||
8 | explode( |
||
9 | "&", |
||
10 | $data |
||
11 | ), |
||
12 | function($o, $p) { |
||
13 | $x = explode("=", $p); |
||
14 | return array_shift($x) != $o ? $o : array_shift($x); |
||
15 | }, |
||
16 | $key |
||
17 | ); |
||
18 | } |