I am trying to check if a string contains .2
.
The following code works if I try to check if it contains a dot:
strpos($string, '.') !== false
But it doesn't work when use the following code:
strpos($string, '.2') !== false
nor
strpos($string, '\.2') !== false
Anyone an idea how to write it correctly? Thanks!