daveoliveruk Posted March 17, 2008 Share Posted March 17, 2008 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 Link to comment https://forums.phpfreaks.com/topic/96521-basic-php-help/ Share on other sites More sharing options...
trq Posted March 17, 2008 Share Posted March 17, 2008 substr(). Link to comment https://forums.phpfreaks.com/topic/96521-basic-php-help/#findComment-493959 Share on other sites More sharing options...
cooldude832 Posted March 17, 2008 Share Posted March 17, 2008 How do you go about making said form as it seems a bit complicated for a name. Link to comment https://forums.phpfreaks.com/topic/96521-basic-php-help/#findComment-493969 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.