Skip to content

Instantly share code, notes, and snippets.

@tarunama
Last active March 10, 2020 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarunama/0055beca0683b4edea97 to your computer and use it in GitHub Desktop.
Save tarunama/0055beca0683b4edea97 to your computer and use it in GitHub Desktop.
<?php
trait Access
{
public function destination($to_where)
{
echo $to_where;
}
}
class Navi
{
use Access;
}
$navi = new Navi();
$navi->destination('青森'); // 青森
<?php
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