Jump to content

[SOLVED] adding strings together


paulman888888

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.