Skip to content

Instantly share code, notes, and snippets.

@tarunama tarunama/TypeHinting.php
Last active Aug 29, 2015

What would you like to do?
[PHP] タイプヒンティング ref:
$data = array();
$data[] = 'hoge';
$data[] = 'foo';
// この間50行くらい
// あ、$dataは配列なのか、と想定してコード読める
function typeHinting(array $data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.