<?php $qryStr = 'type[0]=1&type[1]=2'; $result = preg_replace('/\[(\d+)\]/', '[]', $qryStr); echo $result;
You have javascript disabled. You will not be able to edit any code.