Skip to content

Instantly share code, notes, and snippets.

@tarunama tarunama/trait_A.php
Created Sep 30, 2014

What would you like to do?
[PHP] traitを使うとよいことがあるらしい ref:
trait Access
public function destination($to_where)
echo $to_where;
class Navi
use Access;
$navi = new Navi();
$navi->destination('青森'); // 青森
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.