Re: Using a variable to call another variable

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

 



On Sat, 2006-09-09 at 16:05 -0400, tedd wrote:
> At 11:19 AM -0400 9/9/06, Robert Cummings wrote:
> >
> >  > >  Or something like that.  <----  :-)
> >>
> >>  $easy_peasyier = array("foo1" => 1, "foo2" => 2, "foo3" => 3);
> >>
> >>  echo($easy_peasyier['foo1']);
> >
> >That's zero marks on any exam I ever wrote. You didn't properly read the
> >business requirements that specified the need for a function ;) Also,
> >the version you showed isn't shared in any way, it has local scope, so
> >unless it's defined in global scope and you're working in global scope
> >(since I don't see a global declaration) then it's not very
> >accessible :))
> >
> >Cheers,
> >Rob.
> 
> Rob:
> 
> If you ever wrote an exam that said at the end of a question --
> 
>   "Or something like that."
> 
> -- then you would have gotten an answer like mine.

-5 Argumentation *haha*.

> I've been dodging teachers longer than you've been one.  :-)

I'm not a teacher, and if I were, I'd most certanly only have a few to
choose from my history that I considered good teachers.

Grab some popcorn for a little story...

    I have an especial disdain for this one teacher in grade 12 that
forced the whole class to write points on 4x6 cards for an essay we had
to write. Each week she'd check the stack. So you'd see the smug looks
on the annoying people that thought writing down hundreds of snippets
was good work. I on the other hand was doing mine on the 9 wonders of
the world, I had 9 cards. She really didn't find that amusing,
especially since week one I had 9 cards, and on week 4 I had 9 cards
unchanged. When I got my essay back I got 75%. 25 for the intro, 25 for
the body, 25 for the conclusion, and 0 for content... oh the bitterness
she had for me.

> PS: Few things are harder to put up with than the annoyance of a good example.

You feel that way about my example? Awwwww! ;)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
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