請問一些有用的人請告訴我如何提取字符串的特定部分?他們通常是這樣的:PHP/MySQL提取字符串中特定的一段文字
Includes USD39 bundled airtime, 30 SMSs and 50MB data.
Includes USD200 bundled airtime, 110 SMSs and 450MB data.
Includes USD399 bundled airtime, 500 SMSs and 650MB data.
我所想的就是顯示每個字符串的
USD39 bundled airtime
USD200 bundled airtime
USD399 bundled airtime
件。
我知道這將是痛苦容易在這裏幾乎任何人,所以道歉:d希望我可以問一個更具挑戰性的問題1天..
你能發表你試過的嗎? –
try preg_replace(「/ Includes(。*),。* /」,「$ 1」,$ str); – Nambi
這個問題爲什麼會降低投票率? – 2cent