if we have array = ["1", "2", "3", "4"] how can we remove double quote and get new array = [1, 2, 3, 4] Using PHP
Asked
Active
Viewed 64 times
-3
-
https://stackoverflow.com/questions/32435481/convert-string-array-to-integer-array-in-php – vee Sep 25 '22 at 18:06
1 Answers
0
You could use array_map() followed by a casting from string to int.
See https://www.php.net/manual/en/function.array-map.php for more information.

HangingBrain
- 61
- 4