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 | |
| /** | |
| * _____ _ _________ | |
| * | __ \ | |___ / _ \ | |
| * | |__) | | | / / (_) |_ __ | |
| * | ___/ | | / / \__, | '_ \ | |
| * | | | |__| |/ /__ / /| | | | | |
| * |_| \____//_____|/_/ |_| |_| | |
| * |
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 | |
| $sql = /** @lang SQLite */ | |
| <<< SQL | |
| あいうえお | |
| THIS IS HERE DOCUMENT | |
| かきくけこ | |
| SQL; | |
| function fuga() { |
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 | |
| declare(strict_types=1); | |
| /** | |
| * @name DirectionTest | |
| * @version 1.0.0 | |
| * @main PJZ9n\DirectionTest\DirectionTest | |
| * @api 3.0.0 | |
| */ |
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 | |
| declare(strict_types=1); | |
| use Particle\Validator\Validator; | |
| //Example 1 | |
| $target = [ | |
| "max-players" => 50, | |
| "now-players" => 10, |
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 */ | |
| private static $composerAutoloaderPath = null; | |
| /** | |
| * @return string | |
| */ | |
| public static function getComposerAutoloaderPath(): string | |
| { |
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 | |
| declare(strict_types=1); | |
| require_once __DIR__ . "/vendor/autoload.php"; | |
| use Particle\Filter\Filter; | |
| use Particle\Validator\Validator; | |
| $post = [ |
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 | |
| declare(strict_types=1); | |
| $rawText = file_get_contents("a.txt"); | |
| $arrayText = explode("\r\n", $rawText); | |
| //echo "<h3>Raw Text</h3>"; | |
| //echo "<pre>" . $rawText . "</pre>"; |
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 | |
| declare(strict_types=1); | |
| /** | |
| * @name Hunger | |
| * @version 1.0.0 | |
| * @main Hunger\Main | |
| * @api 3.0.0 | |
| */ |
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
| Titles: | |
| Category: "ShopUI" # Title on the Main Shop! | |
| Items: "アイテム" # Title on the Items Section (All of these three things can have colors using the "§" Symbol!) | |
| Amount: "個数" # Title on the Buying area with Sliders and Things! | |
| Messages: | |
| Survival: "ショップを使用するには、サバイバルモードである必要があります!" # Message for when player is in creative and shop is set to survival only | |
| ExitButton: "§c§l戻る" # Button for Item Category | |
| Category_ExitButton: "§c§l終了" # Button for Exiting Plugin! |
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 | |
| //とても単純な例で、そのまま使うことを前提としていません | |
| //同一ディレクトリに所持金記録用のmoney.jsonがあるとする | |
| function response(int $code, array $data = []): void{ | |
| http_response_code($code); | |
| echo json_encode($data); | |
| exit(); | |
| } |