Hallo,
wieso kann PHP nicht richtig nach einem "." suchen:
<?php
if (eregi(".", "19")) print "found1<br>";
if (eregi(".", "19.4")) print "found2<br>";
if (eregi(".5", "15")) print "found3<br>";
if (eregi(".5", "19.5")) print "found4<br>";
if (eregi(".8", "17.3")) print "found5<br>";
if (eregi(".7", "17.3")) print "found6<br>";
?>
ausgabe: (http://www.michaelwoelk.de/dual/test.php)
found1
found2
found3
found4
found6
hä?
wie kann ich nach "*.5" suchen bzw. nach ".5"?
MfG
Michael W.