If statement help
Posted: Sun Feb 22, 2009 8:42 am
Hello all. I am not exactly new to PHP, but in relation to anything requiring an intermediate to advanced level knowledge of it, you could say I'm a moron.
When putting together my RSS feeds for certain sites, some do not delineate their different sections of news leaving a large clump of returns; whereas other sites have it and I can group them accordingly.
I was wondering how I would go about putting together an if statement for checking whether $url contains a certain word to help me to output to a group properly.
For instance, http://www.link.com/section/title - I want to setup an if statement to check if $url contains "section" and output it properly; and I'll be having more ifs for the other various sections.
Thanks.
When putting together my RSS feeds for certain sites, some do not delineate their different sections of news leaving a large clump of returns; whereas other sites have it and I can group them accordingly.
I was wondering how I would go about putting together an if statement for checking whether $url contains a certain word to help me to output to a group properly.
For instance, http://www.link.com/section/title - I want to setup an if statement to check if $url contains "section" and output it properly; and I'll be having more ifs for the other various sections.
Thanks.