I'm on laravel. In my controller, i get an array stored in a hidden field. The array comes into a string
'[1,2]'
How i can get the php array from this string? And the array items must be the intenger value.
[1,2]
Of course, have in mind various ways to achieve this, but i want the best. Thanks!