Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread Jochem Maas
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

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread John Nichel
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

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread Jochem Maas
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 >

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread Jochem Maas
[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

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread ross
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]

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread ross
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