teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

修正

2019/10/04 03:19

投稿

退会済みユーザー
answer CHANGED
@@ -1,8 +1,9 @@
1
1
  ```php
2
+ $y = 93;
3
+
2
4
  for($i = 0; $i < count($member); $i++){
3
5
 
4
6
  $x = 21;
5
- $y = 93;
6
7
 
7
8
  for($j = 0; $j < count($member[$i]); $j++){
8
9
  $pdf->SetXY($x,$y);
@@ -15,10 +16,11 @@
15
16
  ```
16
17
 
17
18
  ```php
19
+ $y = 93;
20
+
18
21
  foreach($member as $i => $row){
19
22
 
20
23
  $x = 21;
21
- $y = 93;
22
24
 
23
25
  foreach($row as $j => $col){
24
26
  $pdf->SetXY($x,$y);

1

追記

2019/10/04 03:19

投稿

退会済みユーザー
answer CHANGED
@@ -12,4 +12,20 @@
12
12
 
13
13
  $y += 11;
14
14
  }
15
+ ```
16
+
17
+ ```php
18
+ foreach($member as $i => $row){
19
+
20
+ $x = 21;
21
+ $y = 93;
22
+
23
+ foreach($row as $j => $col){
24
+ $pdf->SetXY($x,$y);
25
+ $pdf->Write(0, $row[$j]);
26
+ $x += 15;
27
+ }
28
+
29
+ $y += 11;
30
+ }
15
31
  ```