Created
November 11, 2014 12:31
-
-
Save NandoKstroNet/ca8c588f61f6c50798ca 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
<?php | |
$file = '/home/dllopes/www/teste.php'; | |
$ext = strrchr($file, '.'); | |
$countChar = strlen(str_replace('.', '', $ext)); | |
if($countChar == 4) print 'Extensão possui 4 caracteres além do "."'; | |
if($countChar == 3) print 'Extensão possui 3 caracteres além do "."'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment