This should be OK
$value = explode(".", $value);
$extension = strtolower(array_pop($value)); //Line 32
// the file name is before the last "."
$fileName = array_shift($value); //Line 34
More Related Contents:
- html graphs from database [closed]
- How to refresh parent page after closing popup window in jQUERY? [duplicate]
- Recursive function to generate multidimensional array from database result
- Comparing String to Integer gives strange results
- preg_match(): Compilation failed: invalid range in character class at offset
- Get first key in a (possibly) associative array?
- How can I remove file extension from a website address?
- Laravel 5.5 ajax call 419 (unknown status)
- How to find the foreach index?
- ?: operator (the ‘Elvis operator’) in PHP
- Why doesn’t MySQL support millisecond / microsecond precision?
- PHP Redirection with Post Parameters
- Real escape string and PDO [duplicate]
- Check whether $_POST-value is empty
- Execute javascript in PHP
- Run a mySQL query as a cron job?
- cURL code in PHP dumps output to the page
- Looping a multidimensional array in php
- Can I create a database using PDO in PHP?
- What does ? … : … do? [duplicate]
- can I pass arguments to my function through add_action?
- How to set up entity (doctrine) for database view in Symfony 2
- Replace only first match using preg_replace [duplicate]
- overriding upload_max_filesize
- PHP crop image to fix width and height without losing dimension ratio
- What is the type this string? a:1:{s:2:”en”;}
- Get variable from PHP to JavaScript [duplicate]
- How to get Open Graph Protocol of a webpage by php?
- Multi-byte safe wordwrap() function for UTF-8
- Allow specific products to be purchased only if a coupon is applied in Woocommerce