Codeigniter: URI segments

Posted by Kevin Brown on Stack Overflow See other posts from Stack Overflow or by Kevin Brown
Published on 2010-05-12T15:36:01Z Indexed on 2010/05/12 15:54 UTC
Read the original article Hit count: 195

Filed under:
|

How do I create an if statement saying something like this?

$segment = "segment 2 or 3";
if($segment == 1{
    do stuff
}

I know this is pretty elementary, but I don't totally understand the URI class...

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about beginner