Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
10php
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yu Kimiduka
10php
Commits
72860410
Commit
72860410
authored
Jul 07, 2016
by
君塚 悠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
プログラム修正(calenda.php:変数の修正)
parent
b38a3662
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
calendar.php
php/php10/day03-3/calendar.php
+2
-2
No files found.
php/php10/day03-3/calendar.php
View file @
72860410
...
...
@@ -23,10 +23,10 @@ $last_day = date("t",$current);
<th>
木
</th><th>
金
</th><th>
土
</th>
</tr>
<?php
for
(
$i
=
1
;
$i
<=
first_day
+
$last_day
;
$i
++
)
{
for
(
$i
=
1
;
$i
<=
$
first_day
+
$last_day
;
$i
++
)
{
if
(
$i
%
7
==
1
)
{
print
(
"<tr>"
);}
if
(
$i
>
$first_day
)
{
print
(
"<td>"
.
(
$i
-
first
)
.
"</td>"
);
print
(
"<td>"
.
(
$i
-
$first_day
)
.
"</td>"
);
}
else
{
print
(
"<td> & nbsp;</td>"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment