
26-03-2008, 09:56 PM
|
 | Senior Member | | | Join Date: Jan 2006 Location: Dublin, Ireland
Posts: 2,078
Nominated 5 Times in 3 Posts  TOTW/F/M Award(s): 1 | |
of course it does because ereg looks for the match (in this case "pl") and if found returns true.
You can also use preg_match which is faster as it's Perl-compatible. |