<?php $string = 'Files("textfile1.txt", 7268474425, "textfile2.txt", 661204928, "textfile3.txt", 121034)'; var_export( array_reduce( array_chunk( json_decode('[' . substr($string, 6, -1) . ']'), 2 ), function ($result, $row) { $result[$row[0]] = $row[1]; return $result; } ) );
You have javascript disabled. You will not be able to edit any code.