Puoi usare preg_match_all abilitando il flag PREG_OFFSET_CAPTURE
Codice PHP:
preg_match_all('/sub_stringa/i',$stringa,$mth,PREG_OFFSET_CAPTURE);
echo '<pre>'.print_r($mth[0],true).'</pre>';
Puoi usare preg_match_all abilitando il flag PREG_OFFSET_CAPTURE
Codice PHP:
preg_match_all('/sub_stringa/i',$stringa,$mth,PREG_OFFSET_CAPTURE);
echo '<pre>'.print_r($mth[0],true).'</pre>';
dA .. foto di viaggio
L'esperienza č il tipo di insegnante pių difficile.
Prima ti fa l'esame, e poi ti spiega la lezione.