probedrone Posted August 28, 2006 Share Posted August 28, 2006 i need to compare 2 strings. what operators do i use? the '=' seems to work, tho i donno if this converts to ascii value and compare strings that way or not the '!=' and 'not' does not work, so how would you compare if 2 strings are NOT equal? and what can i expect from the '<' and '>' operators when comparing strings? Thanks Link to comment Share on other sites More sharing options...
Valuater Posted August 28, 2006 Share Posted August 28, 2006 how would you compare if 2 strings are NOT equal? if $string1 <> $string2 ; if different than if $string1 == $string2 ; if is exactly the same if $string1 > $string2 ; if greater than if $string1 < $string2 ; if less than 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now