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 | |
/**** | |
* stdClass Inheritance Failure | |
* ================================================================================ | |
* | |
* This example shows how stdClass is not inherited in classes definitions that | |
* do not explicit it. | |
* | |
*/ |
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 MinhaClasse | |
{ | |
public | |
function HelloWorld() | |
{ | |
echo 'Hello World'; | |
} | |
} |
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 | |
$XML = new SimpleXMLElement('<Configuration></Configuration>', null, false); | |
$XML->addChild('Teste', 'Um bom teste de criação de XML.'); | |
$XML->asXML('teste.xml'); | |
?> |