Delete a value from comma separated list

Delete a user id from Php Comma separated values array saved in MySQL.

Use array_search function to delete the user id and it will delete the user id from the comma separated values with the help of unset function.

Demo – Delete a value from comma separated list