Re: Question

From: Date: Sun, 30 Mar 2003 09:21:09 +0000
Subject: Re: Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141631@lists.php.net to get a copy of this message
This one time, at band camp, Marius <mariusrk@delfi.lt> wrote: > <?php > $list = array ('Ba-na-na', 'Ber-ry'); > echo "<a href=\"index.php?fruit={$list['0']}\">"; > echo $list['0']; > echo "</a>"; > ?> > how i can get "Ba-na-na" in url and "Banana" or "Ba na na" in > echo ? $list = array('Ba-na-na', 'Ber-ry'); echo '<a href="\index.php?fruit='.$list[0].'">'.str_replace('-','',$list[0]).'</a>'; Kevin -- ______ (_____ \ _____) ) ____ ____ ____ ____ | ____/ / _ ) / _ | / ___) / _ ) | | ( (/ / ( ( | |( (___ ( (/ / |_| \____) \_||_| \____) \____) Kevin Waterson Port Macquarie, Australia

« previous php.general (#141631) next »