質問編集履歴
2
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -391,3 +391,43 @@
|
|
391
391
|
</html>
|
392
392
|
|
393
393
|
```
|
394
|
+
|
395
|
+
```php
|
396
|
+
|
397
|
+
$file="231536_receive.txt";
|
398
|
+
|
399
|
+
$count=1;
|
400
|
+
|
401
|
+
$files = file('231536_receive.txt');
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
if (file_exists($file)) {
|
406
|
+
|
407
|
+
// 2ループ処理
|
408
|
+
|
409
|
+
for ($i=1; $i<count($files); $i++){
|
410
|
+
|
411
|
+
$numraw = explode("<>", trim($files[$i]));
|
412
|
+
|
413
|
+
$numpoint = $numraw[0];
|
414
|
+
|
415
|
+
// 最大値より配列の値が大きければ上書きをする
|
416
|
+
|
417
|
+
if($count <= $numpoint){
|
418
|
+
|
419
|
+
$count=$numpoint;
|
420
|
+
|
421
|
+
$count=++$count;
|
422
|
+
|
423
|
+
}
|
424
|
+
|
425
|
+
}
|
426
|
+
|
427
|
+
} else {
|
428
|
+
|
429
|
+
$count = 1;
|
430
|
+
|
431
|
+
}
|
432
|
+
|
433
|
+
```
|
1
初心者マークの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
$message ="";
|
52
52
|
|
53
|
-
$passmessage="";
|
53
|
+
$passmessage="";
|
54
54
|
|
55
55
|
$edfile = file('receive.txt');
|
56
56
|
|