not being able to compare if($char=='«')
Moderator: General Moderators
-
devendra-m
- Forum Contributor
- Posts: 111
- Joined: Wed Sep 12, 2007 3:16 am
not being able to compare if($char=='«')
if($char=='«') is not working properly. $char contain the value '«'.But when i tried the condition it returns false.what might be the problem anybody have idea.
-
devendra-m
- Forum Contributor
- Posts: 111
- Joined: Wed Sep 12, 2007 3:16 am
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
try mb_strrpos() and see if you can find the one string in the other. Keep in mind though that you'll be looking for the offset 0, not a failure (FALSE). Since zero is falsy, you'll need to do a comparison with ===.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
-
devendra-m
- Forum Contributor
- Posts: 111
- Joined: Wed Sep 12, 2007 3:16 am
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
I've moved away from that and more towards generic words such as "Test" and "ABC". Every user of my site now refers to me as Mr. OMGLOL, being as I threw a die into some code that just happened to be sunk over to our live site by a programmer who didn't think anyone else was working at the time. Ah, good times.astions wrote:I usually echo profane 4 letter words that aren't suitable here. Ironically I don't swear in my comments though... generally.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm