Not really. It really depends on your preferences, for which one of them is the clearest way to express what you are doing. Some alternatives:
if( strpos( $h, $n ) !== FALSE ){
}
if( strpos( $h, $n ) > -1 ){
}
The most common approach is probably to use strict comparisons FALSE, so if you are working on an open source project or have many other people using your code, consider this option.
source
share