0
if ( strpos( '<' , '<<<8' ) )
     {
         echo "found";
     }

above code return false.I'm trying to read MRZ characters from string.

my bytecode
  • 404
  • 1
  • 4
  • 14
  • You need to check `strpos('<' , '<<<8')) !== false` - the function returns the first index, which for you is `0`, so you get `if (0)`, which is a falsy statement. – Qirel Feb 11 '20 at 12:22
  • @Qirel write that as an answer instead of a comment, it seems like the correct solution. – mrhn Feb 11 '20 at 12:30
  • Thank you for response @Qirel . I have already tried this but still it is not working. – my bytecode Feb 11 '20 at 12:35
  • @mybytecode That's because the order of parameters is haystack, then needle. https://3v4l.org/0f8dD (string to look in, string to look for). – Qirel Feb 11 '20 at 19:30

0 Answers0