๐
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 | |
| foreach ($result as $key => $value) { | |
| var_dump($key); | |
| } |
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 | |
| public function __call($method, $arguments) { | |
| if ( method_exists($this->lang, $method) ) { | |
| return call_user_func_array(array($this->lang, $method), $arguments); | |
| } | |
| $getter = 'get'. ucfirst($method); | |
| if ( method_exists($this->lang, $getter) ) { |
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 | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); |
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 | |
| $data = new stdClass(); | |
| if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { | |
| if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
| /* Router */ | |
| if (isset($_POST['buy'])) { | |
| $data->success = TRUE; | |
| $data->message = 'Message succesfully sent'; |
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 | |
| public function __construct(array $options = array()) { | |
| /* By default */ | |
| $options = array_merge( | |
| array( | |
| 'one' => 1, | |
| 'two' => 2, | |
| 'three' => 3, | |
| ), |
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 | |
| /** | |
| * @var string $surname | |
| * | |
| * @ORM\Column(name="surname", type="string", length=255, options={"default" = ""}) | |
| */ | |
| private $surname; |
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
| function MyClass(publicVal, privateVal) { | |
| var self = this; | |
| /** | |
| * Public Property | |
| */ | |
| this.publicValue = publicVal; | |
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
| function BWTimer(_delay, _step) { | |
| var self = this; | |
| /** | |
| * Delay in seconds | |
| */ | |
| var delay = _delay; | |
| /** |
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 | |
| ini_set('error_reporting', E_ALL); | |
| ini_set('display_errors', true); |
OlderNewer