- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
while(true)
{
if ($i==0)
{
$new_form_name = $form_res[0]['frm_name'] . ' ( Copy )';
} else
{
$new_form_name = $form_res[0]['frm_name'] . ' ( Copy '.$i.' )';
}
if(!in_array($new_form_name, $formaNames))
{
break;
}
$i++;
}