klausimelis - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of klausimelis.php
- <?php
- namespace Klausimelis;
- class TuKaGejus implements Klausimas
- {
- public $fieldType = Klausimas::YES_NO;
- public $question = 'Ar Jūs esate homoseksualių pažiūrų?';
- public function whereTo($answer)
- {
- if ($answer === Klausimas::ANSWER_YES) {
- return PasyvusArAktyvus::class;
- }
- return PapaiArSiknos::class;
- }
- }
- interface Klausimas
- {
- public const YES_NO = 'yes_no';
- public const ANSWER_YES = 'yes';
- public $fieldType;
- public $question;
- public function whereTo($answer);
- }
File Description
- klausimelis
- PHP Code
- 10 Jan-2020
- 570 Bytes
You can Share it:
Latest PHP Pastes