Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function parse($response) {
- return array_reduce(explode('<br>', $response), function ($r, $item) {
- if (preg_match('#^(.+)=(.+)$#', $item, $matches))
- $r[$matches[1]] = $matches[2];
- return $r;
- }, array());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement