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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -