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
| if (!function_exists('mb_ucfirst')) { | |
| /** | |
| * @param $str | |
| * @param string $encoding | |
| * @param bool $lower_str_end | |
| * @return string | |
| */ | |
| function mb_ucfirst($str, $encoding = "UTF-8", $lower_str_end = false) | |
| { | |
| $first_letter = mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding); |
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
| $key = array_search('100', array_column($userdb, 'uid')); |
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
| $new = [ | |
| [ | |
| 'hashtag' => 'a7e87329b5eab8578f4f1098a152d6f4', | |
| 'title' => 'Flower', | |
| 'order' => 3, | |
| ], | |
| [ | |
| 'hashtag' => 'b24ce0cd392a5b0b8dedc66c25213594', | |
| 'title' => 'Free', |
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 remove(array, element) { | |
| const index = array.indexOf(element); | |
| if (index !== -1) { | |
| array.splice(index, 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
| SELECT | |
| ROUTINE_NAME ,ROUTINE_DEFINITION | |
| FROM | |
| INFORMATION_SCHEMA.ROUTINES | |
| WHERE | |
| ROUTINE_DEFINITION LIKE '%Letter%' | |
| AND ROUTINE_TYPE = 'PROCEDURE' | |
| ORDER BY ROUTINE_NAME |
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
| #In view | |
| <a href="[_route_]" | |
| class="btn btn btn-success btn-circle btn-xs zmdi zmdi-edit" | |
| data-toggle='modal' | |
| data-target="#openModal" | |
| data-tamanio='lg'> | |
| </a> | |
| #OpenModal |
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
| public function handle() | |
| { | |
| $tableName = $this->argument('table'); | |
| if ($tableName != null) { | |
| $table = Schema::hasTable($tableName); | |
| if ($table) { | |
| $columnName = $this->option('column'); | |
| if ($columnName != null) { | |
| $column = Schema::hasColumn($tableName, $columnName); | |
| if ($column) { |
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
| <?hp | |
| function url_amigable($url) { | |
| //$urlMinuscula = strtolower($url); | |
| $buscarLetra = array('Á', 'É', 'Í', 'Ó', 'Ú', 'Ñ', 'á', 'é', 'í', 'ó', 'ú', 'ñ'); | |
| $reemplazar = array('A', 'E', 'i', 'O', 'U', 'N', 'a', 'e', 'i', 'o', 'u', 'n'); | |
| $urlNueva = str_replace($buscarLetra, $reemplazar, $url); | |
| $buscarCaracteres = array(' ', '&', '\r\n', '\n', '+'); | |
| $urlAceptable = str_replace($buscarCaracteres, ' ', $urlNueva); | |
| //$find = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/'); | |
| //$repl = array('', '-', ''); |
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
| INSERT INTO `distritos` (`id`, `distrito`, `provincia_id`) VALUES | |
| (1, 'CHACHAPOYAS', 1), | |
| (2, 'ASUNCION', 1), | |
| (3, 'BALSAS', 1), | |
| (4, 'CHETO', 1), | |
| (5, 'CHILIQUIN', 1), | |
| (6, 'CHUQUIBAMBA', 1), | |
| (7, 'GRANADA', 1), | |
| (8, 'HUANCAS', 1), | |
| (9, 'LA JALCA', 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
| INSERT INTO `provincias` (`id`, `provincia`, `region_id`) VALUES | |
| (1, 'CHACHAPOYAS ', 1), | |
| (2, 'BAGUA', 1), | |
| (3, 'BONGARA', 1), | |
| (4, 'CONDORCANQUI', 1), | |
| (5, 'LUYA', 1), | |
| (6, 'RODRIGUEZ DE MENDOZA', 1), | |
| (7, 'UTCUBAMBA', 1), | |
| (8, 'HUARAZ', 2), | |
| (9, 'AIJA', 2), |
NewerOlder