Re: Why is some_function()[some_index] invalid syntax?

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

 



On Jan 11, 2008 12:25 AM, Jim Lucas <lists@xxxxxxxxx> wrote:

> So, make all your functions return objects, and have the object have a
> method called get or index or something like that that returns the index
> requested.   :)
>
> Better yet, make everything an object: String, Numeric, Array, etc
>

i like using stdClass as a container sometimes, however it doesnt have
the plethora of utility functions that arrays do :(
there are workarounds of course, but obviously i just store the result to
a variable and subsequently use that.
this is just one of those little things picky, non-commiters like myself
bitch about :)

-nathan

[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