Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 19th, 2007, 04:16 PM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default php Classes returning a value

I have a Class called Player. I call this function Enact_Turn and with in this function I call a member function from Class Player. I do my calculations and I want to return the value back to my Function Enact_Turn and store it an array.

Everything works except the return and store it... does anyone know why?

Cheers
imryn
  #2 (permalink)  
Old October 22nd, 2007, 07:14 PM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

There are many reasons that this could not be working as you expect it to.

* your code that isn't working right is always helpful :)

http://mynameissteve.com


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning elements. Neal XSLT 2 May 13th, 2007 04:38 PM
help on returning records memewang Crystal Reports 0 April 14th, 2007 08:48 PM
Returning a value Neal XSLT 6 October 13th, 2006 11:41 AM
Returning an Object taipeiben Visual C++ 2005 0 February 17th, 2006 07:24 PM
calls to php classes from javascript matrygg Beginning PHP 1 August 11th, 2004 04:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.