7
4

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.

PHPで関数の引数の順番とかわからなくなったらphp.net見てない?コマンドで出せるんだぜ!

Posted at

はじめに

こんにちは。最近使っているマグカップはシナモロールのイラストが書いてあります、筆者です:smile:

さて、最近見つけたんですが、PHPのコマンドで関数のリファレンスを出せるのを見つけて感動したので、共有します。

既に知ってますぞという方、尊敬します(ぺっこり45度) :bow:

関数のリファレンス参照できるコマンド

す、素晴らしい!!!

$ php --rf array_colmun

Function [ <internal:standard> function array_column ] {

  - Parameters [3] {
    Parameter #0 [ <required> array $array ]
    Parameter #1 [ <required> string|int|null $column_key ]
    Parameter #2 [ <optional> string|int|null $index_key = null ]
  }
  - Return [ array ]
}

番外編

ほかにもクラスなどのリファレンス参照できるコマンドもあります:thumbsup:

$ php --help | grep "Show information about" | grep -v function
  --rc <name>      Show information about class <name>.
  --re <name>      Show information about extension <name>.
  --rz <name>      Show information about Zend extension <name>.

おわりに

コマンドで見れても、ものによっては、きっとこれからもphp.netを見に行っちゃうと思います:pray:
それでは!

7
4
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
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?