note 87168 deleted from function.substr by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 Nov 2008 16:49:19 +0000 |
| Subject: | note 87168 deleted from function.substr by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146881@lists.php.net to get a copy of this message | ||
Note Submitter: geisonfgf at gmail dot com
----
More one function that I hope help you!
Let's go the code!
// Verifify if file is flash
// Return true or false
function is_swf($file){
$swf = false;
if(substr($file,-3) == 'swf'){
$swf = true;
}
return $swf;
}