I'm a beginner, and am probably doing something really basic wrong here:
As a PHP reg. expressions test I set up 'Chris.html' file on my local test server with the following between the <body> tags:
Chris1 :Chris2 : Chris3 : Chris4 etc...
I then wrote a php script containing:
$content=file_get_contents('Chris.html');
eregi('Chris.',$content,$result);
print_r($result);
The problem is that the array '$result' is only receiving one item(Chris1).
If anyone can point out what I'm fouling up here it would be much appreciated.
Thanks.
As a PHP reg. expressions test I set up 'Chris.html' file on my local test server with the following between the <body> tags:
Chris1 :Chris2 : Chris3 : Chris4 etc...
I then wrote a php script containing:
$content=file_get_contents('Chris.html');
eregi('Chris.',$content,$result);
print_r($result);
The problem is that the array '$result' is only receiving one item(Chris1).
If anyone can point out what I'm fouling up here it would be much appreciated.
Thanks.