Delete the last character string

$cid = substr($cid,0,strlen($cid)-1);

Guess you like

Origin blog.51cto.com/xihan/2439092