note 87168 added to function.substr
| From: | geisonfgf at gmail dot com | Date: | Sat, 22 Nov 2008 04:39:10 +0000 |
| Subject: | note 87168 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146825@lists.php.net to get a copy of this message | ||
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;
}
----
Server IP: 69.147.83.197
Probable Submitter: 201.10.32.188
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- https://master.php.net/note/edit/87168
Del: integrated -- https://master.php.net/note/delete/87168/integrated
Del: useless -- https://master.php.net/note/delete/87168/useless
Del: bad code -- https://master.php.net/note/delete/87168/bad+code
Del: spam -- https://master.php.net/note/delete/87168/spam
Del: non-english -- https://master.php.net/note/delete/87168/non-english
Del: in docs -- https://master.php.net/note/delete/87168/in+docs
Del: other reasons-- https://master.php.net/note/delete/87168
Reject -- https://master.php.net/note/reject/87168
Search -- https://master.php.net/manage/user-notes.php