Re: explode and PATH_SEPARATOR

From: Date: Mon, 15 Nov 2004 18:15:19 +0000
Subject: Re: explode and PATH_SEPARATOR
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202059@lists.php.net to get a copy of this message
On Nov 15, 2004, at 10:17 AM, Francisco M. Marzoa Alonso wrote:
Taking this code: <pre> <?php define (PATH_SEPARATOR, "/"); $String="Root/One/Two/Three/Last"; $arr = explode ( PATH_SEPARATOR, $String ); var_dump ( $arr ); $arr = explode ( "/", $String ); var_dump ( $arr ); ?> </pre>
PATH_SEPARATOR is is a predefined constant, so you'll need to use something else, but you still need to put quotes around it: define('NOT_PATH_SEPARATOR', '/'); -ryan

« previous php.general (#202059) next »