Re: [PHP] Re: Comparing Strings

2006-07-25 Thread Nils Holland
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

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