This file contains hidden or 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
MARICONA |
This file contains hidden or 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
{ | |
Nombre: "elRey", | |
Email: "[email protected]", | |
Pass: "da39a3ee5e6b4b0d3255bfef95601890afd80709", | |
Dispositivo: [ | |
{ | |
Tipo:"Ordenador", | |
Modelo:"Mac Aire", | |
Series: [], | |
}, |
This file contains hidden or 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
INSERT INTO Usuario (id, Nombre, Email, Password) VALUES ('1', 'elRey', '[email protected]','da39a3ee5e6b4b0d3255bfef95601890afd80709'); | |
SELECT * FROM Usuario; | |
UPDATE Usuario SET Email = '[email protected]' WHERE Nombre = 'elRey'; |
This file contains hidden or 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
db.Usuario.insert({ | |
id: '1', | |
Nombre: elRey, | |
Email: '[email protected]', | |
Password: 'da39a3ee5e6b4b0d3255bfef95601890afd80709' | |
}); | |
db.Usuario.find(); | |
db.users.update( |
This file contains hidden or 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 PaqueteDeTabaco | |
{ | |
// Declaración de propiedades | |
private $altura = 50; | |
private $anchura = 20; | |
// Declaración de métodos |
This file contains hidden or 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 PaqueteDeGoldenVirginia extends PaqueteDeTabaco | |
{ | |
private $marca = 'golden virginia'; | |
private $tipo = 'rubio'; | |
// Redefinición del método padre | |
function sacarCigarrillo() | |
{ |
This file contains hidden or 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 Television | |
{ | |
public $tipo = 'Television plana'; | |
protected $pulgadas = '47 pulgadas'; | |
private $marca = 'Samsung'; | |
This file contains hidden or 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 Gorkamu | |
{ | |
const QUE_SOY = 'Soy la polla', | |
public function queSoy() { | |
return self::QUE_SOY; | |
} | |
} |
This file contains hidden or 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 Gorkamu | |
{ | |
private $salario; | |
private $medidas; | |
public function __construc($salario, $medidas) { | |
$this->salario = $salario; | |
$this->medidas = $medidas; |
This file contains hidden or 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 ChuckyDeCieza | |
{ | |
function __construct() { | |
print "Diez pastillones y no me diste ni mielda".PHP_EOL; | |
} | |
function __destruct() { | |
print "Quieres sentirla en el pesho?".PHP_EOL; | |
} |
OlderNewer