NYCPHP Meetup

NYPHP.org

[nycphp-talk] Callback function in a class

Edward Consult at CovenantEDesign.com
Wed Jun 22 18:19:33 EDT 2005


Yeah, I was thinking the same thing....  [0][name] and then [0][name] is going to be naming and then renaming.... but i didn't know if he had just banged this out for demonstrative purposes

       $stores[0]['name'] = "store1";
       $stores[0]['distance'] = "3.4";
       $stores[1]['name'] = "store2";
       $stores[1]['distance'] = "5.6";
etc...


  ----- Original Message ----- 
  From: Joseph Crawford 
  To: NYPHP Talk 
  Sent: Wednesday, June 22, 2005 6:08 PM
  Subject: Re: [nycphp-talk] Callback function in a class


  maybe it doesnt work because you have this

         $stores[0]['name'] = "store1";
         $stores[0]['distance'] = "3.4";
         $stores[0]['name'] = "store2";
         $stores[0]['distance'] = "5.6";

  so when you actually pass in the $stores array it only has one element $stores[0]....

  -- 
  Joseph Crawford Jr.
  Codebowl Solutions, Inc.
  1-802-671-2021
  codebowl at gmail.com 


------------------------------------------------------------------------------


  _______________________________________________
  New York PHP Talk Mailing List
  AMP Technology
  Supporting Apache, MySQL and PHP
  http://lists.nyphp.org/mailman/listinfo/talk
  http://www.nyphp.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050622/0976ed79/attachment.html>


More information about the talk mailing list