Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$mystring = "@blablabla Kayit Ol ogrencino:1176160"
これは私の文字列です。placament of ogrencino:1176160文字列は変更できますが、他の文字列は安定します。
placament of ogrencino:1176160
お気に入り:
$mystring = "@blablabla ogrencino:1176160 Kayit Ol" etc.
どうすれば解析でき"1176160"ますか?
"1176160"
正規表現なし:
$string = "@blablabla ogrencino:1176160 Kayit Ol"; $beg = strpos($string,"ogrencino:") + strlen("ogrencino:"); $end = strpos($string," ",$beg); $mynumber = substr($string,$beg,$end-$beg); //1176100