note 116599 modified in function.pathinfo by salathe

From: Date: Fri, 06 Feb 2015 13:18:55 +0000
Subject: note 116599 modified in function.pathinfo by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201633@lists.php.net to get a copy of this message
Checked with version 5.5.12: It works fine with filenames with utf-8 characters, pathinfo will strip them away: <?php print_r(pathinfo("/mnt/files/飛兒樂團光茫.mp3")); ?> .. will display: Array ( [dirname] => /mnt/files [basename] => 飛兒樂團光茫.mp3 [extension] => mp3 [filename] => 飛兒樂團光茫 ) --was-- Checked with version 5.5.12: It works fine with filenames with utf-8 characters, pathinfo will strip them away: print_r(pathinfo("/mnt/files/飛兒樂團光茫.mp3")); .. will display: Array ( [dirname] => /mnt/files [basename] => 飛兒樂團光茫.mp3 [extension] => mp3 [filename] => 飛兒樂團光茫 ) http://php.net/manual/en/function.pathinfo.php

« previous php.notes (#201633) next »