string to array in laravel

97

string to array in laravel -

$explode_id = json_decode($request->data, true);

convert string to array laravel -

<?php
    $explode_id = array_map('intval', explode(',', $request->data));

Comments

Submit
0 Comments