I have a form with form fields named PROD_1234-2_12_25 etc. I need to loop through the form and any fields that have a value in I ned to strip the PROD_ bit and the bit after the _.
For example PROD_1234-2_12_25 would become 1234-2. Can anyone help me? Thanks in advance
basic PHP help
Moderator: General Moderators
Re: basic PHP help
Assuming that the structure always stays the same:
Code: Select all
$ValueArray = explode("_", $FormName);
$RequiredValue = $ValueArray[1];