兩個字符之間的字符串我在PHP中的字符串說獲取在PHP
$string = 'All I want to say is that <#they dont really care#> about us.
I am wasted away <#I made a million mistake#>, am I too late.
Theres a storm in my head and a race on my bed, <#when you are not near#>' ;
$expected_output = array(
'they dont really care',
'I made a million mistake',
'when you are not near'
);
我怎樣才能達致這使用PHP正則表達式? 感謝您的閱讀:)
供參考:增加了解釋,演示和參考。 :) – zx81
感謝您的快速回復! 幫助:) – mmt
非常歡迎,很高興幫助! :) – zx81