<?php $string = 'April 15, 2003'; $pattern = '/&([a-zA-Z0-9]*)\[\]/'; $replacement = '${1}1,$3'; echo preg_replace($pattern, $replacement, $string);
You have javascript disabled. You will not be able to edit any code.