php preg_match dışarı yakala

0 Cevap php
<script type="text/javascript"><!-- 
Vertical1_437 = "false-2010";
ShowAdHereBanner1437 =" true";
RepeatAll1437 = "true";
NoFollowAll1437 ="true";
//-->
</script> 

I'm trying to get the 2010 part out of the false-2010. i want it to echo 2010 only.. Thanks for the help.

Bu i ile başladı neydi ve saplanıp

<?php
$get2010 = preg_match('/\<!--(.*?)-->/', $get2010, $m);
echo $m[1]; 
?>

ve oh .. 2010, rasgele oluşturulmuş bir sayı değişir ... olduğunu.

0 Cevap