Re: optimizing space for array of booleans

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

 



> but you're trying to pass stuff to it:
> 
>    public function tostring() {
>      $str = $this->binstr($this->bits[0]);
>      for ($i=1;$i<8;$i++)
>        $str .= "," . $this->binstr($this->bits[$i]);
>      return $str;
>    }

Slap (on my face)! My stupidity... I come from a strongly typed language
background and dynamically typed language often makes me less careful.
Thanks, good job =).
-- 
View this message in context: http://www.nabble.com/optimizing-space-for-array-of-booleans-tp22159131p22198832.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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