On Fri, February 10, 2006 1:39 pm, jonathan wrote:
> i"m mapping some data from a sql select into a custom object that
> will have a couple associative arrays. I have some code that I think
> looks a little ugly such as:
>
> $x=0;
> if($row['slot']>=2)
> {
> $this->me
On Fri, Feb 10, 2006 at 11:39:13AM -0800, jonathan wrote:
>
> i"m mapping some data from a sql select into a custom object that
> will have a couple associative arrays. I have some code that I think
> looks a little ugly such as:
>
> $x=0;
> if($row['slot']>=2)
> {
>
function get_last_key( $array ) {
// end( $array ); return key( $array );
return array_search(
reset( array_reverse( array_values( array_flip( $array ) ) ) )
,array_reverse( array_values( array_flip( $array ) ) )
,true
3 matches
Mail list logo