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
6 matches
Mail list logo