Last active
August 29, 2015 14:06
-
-
Save saltun/2fb607f29f97bd3f0657 to your computer and use it in GitHub Desktop.
namespaces example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Author : Savaş Can Altun < savascanaltun@gmail.com > | |
Date : 05.09.2014 | |
*/ | |
namespace Tanrilar; | |
Class Zeus | |
{ | |
public function ozellik() | |
{ | |
return 'şimşek atar pivu pivu '; | |
} | |
} | |
Class Posedion | |
{ | |
public function ozellik() | |
{ | |
return 'Suları falan yönetir sel yapar ezer yok eder boğulursun by .s'; | |
} | |
} | |
header('Content-Type: text/html; charset=utf-8'); | |
$zeus = new \Tanrilar\Zeus; | |
$posedion = new \Tanrilar\Posedion; | |
echo '<b>Zeus Amcanın özelliği </b><p>' . $zeus->ozellik() . '</p>'; | |
echo '<b>Posedion Amcanın özelliği </b><p>' . $posedion->ozellik() . '</p>'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment