Ron.Herhuth,Helloļ¼
You have made a mistake.look at the declaration of substr function:
string substr(string string, int start, int [length]);
The third parameter means sub-string's length,not the position.Hence,you
should do like this:
";
for($i=0;$
e
the space from the $searchWord variable.
Derrick Hermanson
Programmer/Analyst I
[EMAIL PROTECTED]
-Original Message-
From: Gerardo Rojas [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 1:35 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Strange Substr Behav
The way this is writtien won't work. Because the substr() functions takes 2
arguments. The first is the start position and the second is the length.
So you are increasing the length or 'j' in the example. It is not a fixed value of 3.
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-Origi