Why nog just change this to $cParts = explode('=', $c, 2); ?