tobeyt23 Posted April 22, 2008 Share Posted April 22, 2008 Can this be coded any better? if (!empty($values['VID'])) { $t=0; for($i=1; $i<=17; $i++) { $values['vin'.$i.''] = $values['VID']{$t}; $t++; } } Link to comment https://forums.phpfreaks.com/topic/102357-better-way-to-code/ Share on other sites More sharing options...
jvrothjr Posted April 22, 2008 Share Posted April 22, 2008 if (!empty($values['VID'])) { for($i=1; $i<=17; $i++) { $values['vin'.$i.''] = $values['VID']{$i-1}; } } [\php] Link to comment https://forums.phpfreaks.com/topic/102357-better-way-to-code/#findComment-524108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.