2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PHP ちょいとした応用

Last updated at Posted at 2019-02-03

PHPだけで少し動的に書いてみました。

例えば簡単な入力場面を作るとして、このような項目がある場合。
Screenshot from Gyazo
これだと項目が増えた場合だといちいち加える感じになります。
なのでマスターデータ風なのを作って。。。
Screenshot from Gyazo
inputは、、、
Screenshot from Gyazo
Screenshot from Gyazo
confirmで、、、
Screenshot from Gyazo

分岐や配列、関数の勉強になりました。

分岐と配列、カプセル化は重要だよと聞いているのでこれからも頑張ります!( ∵)
※array_pushって遅いからあんまり使わない方がいいんだっけ??

2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?