-------- Original Message --------
Subject: Re: Re: Rewriting string
Date: Thu, 13 Jan 2011 15:40:50 -0500
From: Admin <admin@xxxxxxxxxxxxxxxxxxx>
To: nrixham@xxxxxxxxx <nrixham@xxxxxxxxx>
References: <201101130509.13005.david@xxxxxxxxxxxxx>
<4D2F3A3A.3050009@xxxxxxxxx>
<D9B64231-5E20-4572-8A6E-046941ACDF5A@xxxxxxxxxxxxxxxxxxx>
<4D2F6117.1040604@xxxxxxxxx>
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@xxxxxxxxx> wrote:
Admin wrote:
$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.
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php