note 31412 added to function.basename

From: Date: Mon, 21 Apr 2003 08:54:54 +0000
Subject: note 31412 added to function.basename
Groups: php.notes 
Request: Send a blank email to php-notes+get-46870@lists.php.net to get a copy of this message
...weird, but same effect :) $regex = "/[\/\\][0-9A-Za-z`:.~_'-]+[\\\|\/]/"; $x = "/home/frances/.achanzar/file.tar.gz"; $y = "Z:\progra~1\-mark\file.tar.gz"; $x = preg_replace($regex, "", $x); $y = preg_replace($regex, "", $y); echo $x."\n".$y; -- http://www.php.net/manual/en/function.basename.php http://master.php.net/manage/user-notes.php?action=edit+31412 http://master.php.net/manage/user-notes.php?action=delete+31412 http://master.php.net/manage/user-notes.php?action=reject+31412

« previous php.notes (#46870) next »