Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
[PHP] タイプヒンティング ref: http://qiita.com/tarunama/items/649e6722244216cf84da
<?php
$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.