php - How to convert string to real array laravel -


i have following string in variable grabbed s3 bucket content,i need return real array in function.

how can process in laravel?

<?php return array(     "accepted" => "the :attribute must accepted.",     "active_url" => "the :attribute not valid url.",     "after" => "the :attribute must date after :date.",     "alpha" => "the :attribute may contain letters.",     "alpha_dash" => "the :attribute may contain letters, numbers, , dashes.",     "alpha_num" => "the :attribute may contain letters , numbers.",     "before" => "the :attribute must date before :date.", ) 

did try

$array = include('path_to_your_file'); dd($array);