The reaction ofC-phenylcalix[4]resorcinarene-based polymer with quaternary ammonium and potassium cations