Nils Holland wrote:
My guess is that PHP only sees / compares the strings up to a
certain position. Is this possible? And if so, is there any way
around this, so that my whole string is seen?
Greetings and thanks in advance,
Nils
Maybe it's interpreting something as a number somewhere. Did
John Nichel wrote:
> Jochem Maas wrote:
...
>>
>> exactly. btw: var_dump() should be showing exactly where the white
>> space is e.g.:
>>
>>
>> code:
>> > $s1 = "Company Director "; $s2 = "Company Director"; var_dump($s1, $s2);
>>
>> output:
>> string(17) "Company Director "
>> string(16) "Compan
Jochem Maas wrote:
[EMAIL PROTECTED] wrote:
var_dump gives
Company Director string(17)
Company Director string(16)
Why would they be different?
probably because there is either:
1. white space in the value in your data source
2. white space being outputted along side the value when creati
Ross wrote:
> This does not work although when I echo out the strings they are exactly the
> same. Strange!
try using var_dump($compare1, $compare2);
>
>
> "Ross" <[EMAIL PROTECTED]> wrote in message news:...
>> if (isset($_POST['Submit'])) {
>> //echo "post equals".$_POST['x']." corect
>
[EMAIL PROTECTED] wrote:
> var_dump gives
>
> Company Director string(17)
>
> Company Director string(16)
>
> Why would they be different?
probably because there is either:
1. white space in the value in your data source
2. white space being outputted along side the value when creating a form
ROTECTED]>
Cc:
Sent: Tuesday, June 20, 2006 3:57 PM
Subject: Re: [PHP] Re: comparing strings - again!
Ross wrote:
This does not work although when I echo out the strings they are exactly
the
same. Strange!
try using var_dump($compare1, $compare2);
"Ross" <[EMAIL PROTECTED]
ent: Tuesday, June 20, 2006 3:57 PM
Subject: Re: [PHP] Re: comparing strings - again!
Ross wrote:
This does not work although when I echo out the strings they are exactly
the
same. Strange!
try using var_dump($compare1, $compare2);
"Ross" <[EMAIL PROTECTED]> wrote in message
7 matches
Mail list logo