match an array value with a word

From: george (russell_at_waiheke.co.nz)
Date: 07/27/04


Date: 27 Jul 2004 07:21:36 -0700

Could someone help me?

I'm trying to read an array and if one of the values == a word, then
assign a new value to it.

In other words if one of the values is 'apple' I need to assign a <a
href=apple.htm> to it. But if it's 'pear' then assign <a
href=pear.htm>. Meanwhile, ignore 'firewood' and 'and' values.

Help is greatly appreciated.

Cheers!


Quantcast