Created
February 20, 2013 18:35
-
-
Save Kolesias123/4997861 to your computer and use it in GitHub Desktop.
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
<? | |
require 'Init.php'; | |
$testing = __('¿Que Carajo Estoy Haciendo?'); | |
echo $testing->replace('Haciendo', 'Poniendo'); // ¿Que Carajo Estoy Poniendo? | |
echo '<br />'; | |
echo $testing->undo(); // ¿Que Carajo Estoy Haciendo? | |
echo '<br />'; | |
echo $testing->lower(); // ¿que carajo estoy haciendo? | |
echo '<br />'; | |
echo $testing->md5; // 322c7101e4fad274c78a3f1d53ac9ff2 | |
echo '<br />'; | |
echo $testing->length; // 28 | |
echo '<br />'; | |
echo $testing->repeat(3); // ¿que carajo estoy haciendo?¿que carajo estoy haciendo?¿que carajo estoy haciendo? | |
echo '<br />'; | |
echo $testing->undo()->encode('base64'); // wr9xdWUgY2FyYWpvIGVzdG95IGhhY2llbmRvPw== | |
echo '<br />'; | |
echo $testing->undo()->upper(); // ¿QUE CARAJO ESTOY HACIENDO? | |
echo '<br />'; | |
_r( $testing->split(2) ); | |
/* | |
Array | |
( | |
[0] => ¿ | |
[1] => QU | |
[2] => E | |
[3] => CA | |
[4] => RA | |
[5] => JO | |
[6] => E | |
[7] => ST | |
[8] => OY | |
[9] => H | |
[10] => AC | |
[11] => IE | |
[12] => ND | |
[13] => O? | |
) | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Se ve interesante la implementación, sería bueno poder usar la clase que propones de manera independiente y como dependencia para Composer/Packagist, yo la usaría. 👍