On Sat, 2006-04-08 at 19:46, tedd wrote: > > Rob: > > Well, I agree with you. I like the cryptic nature of php; and it > being absent from all the pointer confusion; and I especially like > the way php handles strings. For me, C was always problematic in the > string area. > > Plus, php linked with MySQL makes for a very complete development > package that runs on more computers than any other language to date. > > The only major problem I see is that it's server-side and thus > isolated somewhat from user input. I would like to see more user > inter-reaction and that's the reason I'm investigating ajax. In > short, I miss the event loop. > > Also, while I know how to pass variables by reference (i.e., > pointers) to functions, I still wonder if one can obtain a pointer to > a function? But, I'll find out in time. Like the following? <?php function f_a() { echo 'a'; } function f_b() { echo 'b'; } function f_c() { echo 'c'; } $map = array ( 'a' => 'f_a', 'b' => 'f_b', 'c' => 'f_c', ); $map['a'](); $map['b'](); $map['c'](); ?> 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