Re: Catch line indetation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 28, 2016 at 10:40 PM, David Harkness <david.h@xxxxxxxxxxxxxxxxx>
wrote:

> if ($input && ($input = (str) $input)) { ...
>

Luckily, PHP's automatic string conversion -- (bool) "0" === false -- does
not ignore leading spaces. (bool) " 0" === true. Phew!

Ciao!
David

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux