Phosphate removal from wastewaters using a weak anion exchanger prepared from a lignocellulosic residue.