[thelist] php question revisited

Tom Dell'Aringa pixelmech at yahoo.com
Tue Jun 28 14:25:32 CDT 2005


My most recent post may have been too detailed so here is the problem simplified. I want to make
an equality match. I have a variable with a string value:

$current - which equals something like 'some-category'

Then I have a variable in my function like this:

$category->nicename - which holds something similar to $current - a string.

I want to test if these are equal. Can I simply do:

if ($current == $category->nicename) { do stuff } ?

I tried that and it didn't seem to work, so I am thinking I'm on the wrong track...

Tom


http://www.pixelmech.com/

Melissa: Ace, Where are you?
Ace Ventura: I'm in Psychoville and Finkle's the Mayor.



More information about the thelist mailing list