|
Posted by Henk oegema on 04/22/07 11:43
Vince Morgan wrote:
>
> "Henk oegema" <henk@oegema.com> wrote in message
> news:ueGWh.133959$4_7.969815@phobos.telenet-ops.be...
>> I have put the three versions together with their output:
>
> Two versions include code that _was_ posted. However, one of them is not
> something that was posted here, though it looks similar to one of them.
> This block;
>
>> if(is_numeric($string[$i]<"5"))
>> {
>> $string[$i]= $string[$i]+ 5;
>> }else
>> {
>> $string[$i]= $string[$i]- 5;
>> }
>
> is quite similar to the one below, which is what I actualy posted.
>
>> if(is_numeric($string[$i]))
>> {
>> if($string[$i] < "5")
>> {
>> $string[$i] = $string[$i] + 5;
>> }else
>> {
>> $string[$i] = $string[$i] - 5;
>> }
>> }
> The one above produces exactly the same output as the other two, if the
> same inputs are used.
> Perhaps you made a mistake in typing it up. Copying and pasting might
> have saved you some time.
> Check what was posted against what you have above.
> Regards,
> Vince
Your are absolutely correct Vince. :-)
Sorry, my mistake. :-(
Thanks very much for your help and time. (also thanks to Jeff)
I'm a totally happy man now.
Rgds.
Henk
[Back to original message]
|