0
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 3 years have passed since last update.

FuelPHP Input::post 第2引数

Posted at

Input::post には第2引数を設定でき、目的の要素が見つからなかった場合に返す値を設定できる。
これによって空かどうかなどの条件式を書く必要がなくなる。

example.php
$number = \Input::post('number', 0);
//numberが見つからなかったら0を返す
0
0
0

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
0
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?