Re: [PHP] Re: Rewriting string

2011-01-15 Thread David McGlone
On Saturday, January 15, 2011 07:36:33 am Evil Son wrote: > On Sat, Jan 15, 2011 at 10:20 AM, David McGlone wrote: > > On Thursday, January 13, 2011 12:45:30 pm Nathan Rixham wrote: > >> ... > >> $categorys = array('home', 'services', 'gallery', 'about_us', > >> 'contact_us', 'testimonials'); > >>

Re: [PHP] Re: Rewriting string

2011-01-15 Thread Evil Son
On Sat, Jan 15, 2011 at 10:20 AM, David McGlone wrote: > On Thursday, January 13, 2011 12:45:30 pm Nathan Rixham wrote: >> ... >> $categorys = array('home', 'services', 'gallery', 'about_us', >> 'contact_us', 'testimonials'); >> foreach($categorys as $category) { >>    $temp = str_replace("_", " "

Re: [PHP] Re: Rewriting string

2011-01-14 Thread David McGlone
On Thursday, January 13, 2011 12:45:30 pm Nathan Rixham wrote: > David McGlone wrote: > > Hi everyone, > > > > I think the subject is right, or somewhere close. Anyway I am trying to > > perform a little trickery here with links. In the following code you can > > see where I am trying to replace t

Re: [Fwd: Re: [PHP] Re: Rewriting string]

2011-01-13 Thread Daniel Brown
On Thu, Jan 13, 2011 at 16:31, Nathan Rixham wrote: > Dan, you misread, I fwd'd the email, that was Richards reply to me. > > You should know I don't reply to people in such a manner by now :) Thought it was a bit odd, but in Gmail, it didn't show forwarding, only a reply - seemingly written

Re: [PHP] Re: Rewriting string

2011-01-13 Thread Nathan Rixham
Nathan Rixham wrote: Admin wrote: $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials'); If(in_array($_GET['page'], $categories)) { echo ''.str_replace("_"," ",$_GET['page']).''; }else{ echo ''.str_replace("_"," ",$_GET['page']).''; } I normally never wr

Re: [PHP] Re: Rewriting string

2011-01-13 Thread Nathan Rixham
Admin wrote: $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials'); If(in_array($_GET['page'], $categories)) { echo ''.str_replace("_"," ",$_GET['page']).''; }else{ echo ''.str_replace("_"," ",$_GET['page']).''; } I normally never write someones code for t

Re: [PHP] Re: Rewriting string

2011-01-13 Thread Admin
> $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', > 'testimonials'); If(in_array($_GET['page'], $categories)) { echo ''.str_replace("_"," ",$_GET['page']).''; }else{ echo ''.str_replace("_"," ",$_GET['page']).''; } I normally never write someones code for them but you