Can someone point out what I'm doing wrong here? The first doesn't echo anything:
1.
$sentence="this 900 is my sentence";
$ifNum=ereg("[0-9]*",$sentence,$workingNum);
echo $workingNum[0];
2.
$sentence="900 this is my sentence";
$ifNum=ereg("[0-9]*",$sentence,$workingNum);
echo $workingNum[0];
The second does. Why does it only work with the number at the beginning of the sentence?