<?php $cookie= "5100/5101/5102"; $novovalor= join('/',array_diff(explode('/', $cookie), array('5101'))); echo $novovalor;
Standard input is empty
5100/5102
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!