When i select multiple checkbox, i get the values something like this….
9,admin@domain.com,1,9,gg@domain.com,2,2,pra@domain.com,3,2,sh@sh.com,4
Now i need to delete all of them, so i need to pass their user ID alone to query. For this i need to split the string and pass their multiple ID’s alone to query.
$var1 = $theArrayValue;
$chan= explode(',', $var1);
return $chan;
$theArrayValue holds all these info below.
9,admin@domain.com,1,9,gg@domain.com,2,2,pra@domain.com,3,2,sh@sh.com,4
I need to delete multiple items selected.
name your field name=”myfield[]” then it will come to php in an array