pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
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
| #!/usr/bin/env bun | |
| "use strict"; | |
| const fs = require("fs"); | |
| const { execSync } = require("child_process"); | |
| const path = require("path"); | |
| // ANSI color constants | |
| const c = { | |
| cy: '\033[36m', // cyan |
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 | |
| /** | |
| * UserFrosting (http://www.userfrosting.com) | |
| * | |
| * @link https://github.com/userfrosting/UserFrosting | |
| * @copyright Copyright (c) 2013-2017 Alexander Weissman | |
| * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License) | |
| */ | |
| namespace UserFrosting\Sprinkle\Core\Model\Relations; |
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 extract_emails($str){ | |
| // This regular expression extracts all emails from a string: | |
| $regexp = '/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+([a-z0-9]{2,4})+/i'; | |
| preg_match_all($regexp, $str, $m); | |
| return isset($m[0]) ? $m[0] : array(); | |
| } | |
| $test_string = 'This is a test string... |

