質問編集履歴

1

2015/02/05 03:26

投稿

hirotaka789
hirotaka789

スコア35

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  クラスのメソッドをコールすると次のエラーになります。
2
2
 
3
- __Fatal error: Call to undefined function assign__
3
+ Fatal error: Call to undefined function assign
4
4
 
5
5
 
6
6
 
@@ -8,75 +8,73 @@
8
8
 
9
9
 
10
10
 
11
- ```lang-<ここに言語を入力>
12
-
13
11
  class person {
14
12
 
15
13
 
16
14
 
17
15
  function management($person, $position){
18
16
 
19
-
20
17
 
21
- //
22
18
 
23
- // さまざまな処理
19
+ //
24
20
 
25
- //
21
+ // さまざまな処理
26
22
 
27
- //
23
+ //
28
24
 
29
-
25
+ //
30
26
 
31
- $task = assign($person, $position);
32
27
 
33
-
34
28
 
35
- //
29
+ $task = assign($person, $position);
36
30
 
37
- // さまざまな処理
38
31
 
39
- //
40
32
 
41
- //
33
+ //
42
34
 
43
-
35
+ // さまざまな処理
44
36
 
45
- return true;
37
+ //
46
38
 
47
- }
39
+ //
48
40
 
49
-
50
41
 
51
- function withdraw($person) {
52
42
 
53
- //
43
+ return true;
54
44
 
55
- // さまざまな処理
45
+ }
56
46
 
57
- //
58
47
 
59
- //
60
48
 
61
- return true;
49
+ function withdraw($person) {
62
50
 
63
- }
51
+ //
64
52
 
65
-
53
+ // さまざまな処理
66
54
 
67
- function assign($person, $position) {
55
+ //
68
56
 
69
- //
57
+ //
70
58
 
71
- // さまざまな処理
59
+ return true;
72
60
 
73
- //
61
+ }
74
62
 
75
- //
76
63
 
77
- return true;
78
64
 
65
+ function assign($person, $position) {
66
+
67
+ //
68
+
69
+ // さまざまな処理
70
+
71
+ //
72
+
73
+ //
74
+
75
+ return true;
76
+
79
- }
77
+ }
80
78
 
81
79
  }
82
80
 
@@ -85,5 +83,3 @@
85
83
  $p = new person();
86
84
 
87
85
  $res = $p->management("foo","president");
88
-
89
- ```