[Fwd: Re: [PHP] Re: Rewriting string]
| From: | Nathan Rixham | Date: | Thu, 13 Jan 2011 20:41:48 +0000 |
| Subject: | [Fwd: Re: [PHP] Re: Rewriting string] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-310745@lists.php.net to get a copy of this message | ||
-------- Original Message --------
Subject: Re: [PHP] Re: Rewriting string
Date: Thu, 13 Jan 2011 15:40:50 -0500
From: Admin <admin@buskirkgraphics.com>
To: nrixham@gmail.com <nrixham@gmail.com>
References: <201101130509.13005.david@dmcentral.net> <4D2F3A3A.3050009@gmail.com> <D9B64231-5E20-4572-8A6E-046941ACDF5A@buskirkgraphics.com> <4D2F6117.1040604@gmail.com>
Really?
That is what you think it does?
If so quit the mail list your a fucking idiot.
It checks the get position of page and checks if the value is in the array.
Next time you make a fucking ignorant comment, at least know what the fuck you are talking about.
Sent from my iPhone
On Jan 13, 2011, at 3:31 PM, Nathan Rixham <nrixham@gmail.com> wrote:
Admin wrote:i assume you're joking - that code is simply going to give 6 list items all with the same value - $_GET['page'] please do check you know what you're talking about before you post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php$categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials');If(in_array($_GET['page'], $categories)) { echo '<li><a href=index.php?page='.$_GET['page'].'>'.str_replace("_"," ",$_GET['page']).'</a></li>'; }else{ echo '<li>'.str_replace("_"," ",$_GET['page']).'</li>'; } I normally never write someones code for them but you are just not getting it. The above code works use it.