I would like to find the position of the first point after the @ character:
我想在@字符后找到第一个点的位置:
blabla jim@gmail.com blabla.bla bla
I know that the @ is at position 54, so the result would be 60.
我知道@在54位,所以结果是60。
1 个解决方案
#1
This takes the first dot '.', but let strpos start searching after the first position of the at '@'.
这需要第一个点'。',但是让strpos在'@'的第一个位置后开始搜索。
strpos($string, ".", strpos($string, "@"))
#1
This takes the first dot '.', but let strpos start searching after the first position of the at '@'.
这需要第一个点'。',但是让strpos在'@'的第一个位置后开始搜索。
strpos($string, ".", strpos($string, "@"))