summaryrefslogtreecommitdiff
path: root/ext/standard/tests/reg/005.phpt
blob: 78c0a0912ab4088ea14af152080e899c4daadd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Test Regular expression register support in ereg
--POST--
--GET--
--FILE--
<?php $a="This is a nice and simple string";
  echo ereg(".*(is).*(is).*",$a,$registers);
  echo "\n";
  echo $registers[0];
  echo "\n";
  echo $registers[1];
  echo "\n";
  echo $registers[2];
  echo "\n";
?>
--EXPECT--
32
This is a nice and simple string
is
is