This file contains 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 die('This file is not really here!'); | |
/** | |
* ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER --------------------- | |
* | |
* Implements code completion for CodeIgniter in phpStorm | |
* phpStorm indexes all class constructs, so if this file is in the project it will be loaded. | |
* ------------------------------------------------------------------- | |
* Drop the following file into a CI project in phpStorm | |
* You can put it in the project root and phpStorm will load it. |
This file contains 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 | |
# Conteúdo a ser examinado | |
$string = 'abcedf'; | |
# Ocorrências | |
preg_match('/[0-9]]/', $string); // Pode conter números de 0 à 9 | |
preg_match('/[4-8]]/', $string); // Pode conter números de 4 à 8 | |
preg_match('/[A-Z]]/', $string); // Pode conter letras de A à Z maiusculas | |
preg_match('/[a-z]/', $string); // Pode conter letras de A à Z minusculas | |
preg_match('/[F-P]]/', $string); // Pode conter letras de F à P maiusculas |