Created
February 18, 2015 06:07
-
-
Save rampuero/62576c6d26da6ceaf90c to your computer and use it in GitHub Desktop.
I create
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 | |
class SimpleClass | |
{ | |
//declaracion de la propiedad | |
public $var = 'informacion por default'; | |
//declaracion de método | |
public function displayVar(){ | |
echo $this->var; | |
} | |
} | |
$consulta = new SimpleClass(); | |
echo $consulta->displayVar(); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment