בניה תיכול לתת לי הסבר על הPREG MATCH ALL? אני לא מבין למה הוא שימושי?..
אתה ממש תותח בPCRE =]
עריכה, לבקשתך:
PHP קוד:
<?php
$content="------=_Part_27331_28312923.1147443914225
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
lolo
lili
lala
------=_Part_27331_28312923.1147443914225
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
lolo
lili
lala
------=_Part_27331_28312923.1147443914225--
";
preg_match_all("#\Content-Disposition: [\w]+(.+?)\------=_Part_#is",$content,$matchs,PREG_PATTERN_ORDER);
print_r($matchs[1]);
?>