Skip to content

Commit 6c97ba9

Browse files
committed
Fixing test_all.php
Removed extra comma on inputs display
1 parent bdf74eb commit 6c97ba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/test_all.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function test($net, $test_data) {
1616
for($i = 0; $i < $num_inputs; $i++) {
1717
$test_result .= $test_data[$i];
1818

19-
if ($i < $num_inputs) {
19+
if ($i < $num_inputs - 1) {
2020
$test_result .= ', ';
2121
}
2222
}
@@ -32,7 +32,7 @@ function test($net, $test_data) {
3232

3333
fann_destroy($ann);
3434
} else {
35-
die("Invalid file format<br>" . PHP_EOL);
35+
die("Invalid file format" . PHP_EOL);
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)