Re: Re: comparing strings - again!
| From: | Jochem Maas | Date: | Tue, 20 Jun 2006 20:12:35 +0000 |
| Subject: | Re: Re: comparing strings - again! | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238429@lists.php.net to get a copy of this message | ||
John Nichel wrote:
> Jochem Maas wrote:
...
>>
>> exactly. btw: var_dump() should be showing exactly where the white
>> space is e.g.:
>>
>>
>> code:
>> <?php
>> $s1 = "Company Director "; $s2 = "Company Director"; var_dump($s1,
>> $s2);
>>
>> output:
>> string(17) "Company Director "
>> string(16) "Company Director"
>>
>
> Without the quotes he's not going to see the extra white space though,
> as the browser is going to render the first space it comes too, but it
> will piss on any white space after that (for display purpose). Main
> reason I wrap my debugging data in <pre></pre>.
I use <pre> too when debugging in the browser - but I was testing on the
cmdline, that said var_dump() outputs the quotes when outputting to the browser
too. I wasn't 100% sure but I just checked to be safe ;-)
>