paulman888888 Posted August 8, 2008 Share Posted August 8, 2008 This is properly got a easy answer. I would like to know how to add strings in a loop. For example <?php $i = 1; while(true) { if (!isset($_POST["white_move_".$i])){ $move = $i. '.' .$_POST["white_move_".$i]//post=e then the next time =gh $i++; }} ?> So that $move will get bigger and bigger and not replaced by the next go round the loop. Hope you understand Thankyou Paul Link to comment https://forums.phpfreaks.com/topic/118763-solved-adding-strings-together/ Share on other sites More sharing options...
waynew Posted August 8, 2008 Share Posted August 8, 2008 $example = $example.$new_string; Link to comment https://forums.phpfreaks.com/topic/118763-solved-adding-strings-together/#findComment-611479 Share on other sites More sharing options...
kenrbnsn Posted August 8, 2008 Share Posted August 8, 2008 Or <?php $example .= $new_string; ?> Ken Link to comment https://forums.phpfreaks.com/topic/118763-solved-adding-strings-together/#findComment-611484 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.