php - removing quotes from array value -
i have following array value
0 => "2" now since im using api important there no qoutes (as call mis interperate it)
so tried following:
stripslashes($string); however did not ideas?
$yourarray = array_map('intval', $yourarray); if want convert values or intval($string) on string
Comments
Post a Comment