![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Sounds like you mean you have a method of a class that is returning a value. So here is an example: function GetNumber(){ $val = 15; return $val; } To use this function you first create a variable then assign the return value of the function to the variable: $returnedValue = GetNumber(); After execution, $returnedValue will now be equal to 15. What is being returned is whatever is in $val... not $val itself. It IS possible to get a reference to $val but I don't think that is what you are getting at so I won't go there. |
| ||||
| PHP Classes are the same as that of the classes in C++ You can read this. http://in2.php.net/manual/en/language.oop5.basic.php |
| |||
| anow2, if you want to learn classes in PHP, you must to use not PHP3. Download the latest version of PHP5. And read the book)) |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Used "caging evidence" as a search on yahoo NEWS page, not websearch. Has return #5 been concealed/ no vote? | sai14 | Yahoo! | 1 | 06-02-2007 04:00 PM |
| Book title: about a man who writes a book about his home town and has to return and face them at a funeral? | __Danny | General Discussions | 1 | 02-16-2007 03:42 AM |
| How do I define class constants in php5? | Hawk | PHP | 3 | 01-06-2007 01:03 PM |
| yahoo search marketing class? | Raphs | Pay-Per-Click Marketing | 1 | 08-25-2006 02:47 AM |
| java query : My prog is giving an error while running java class , pl help !? | pepecito | Programming | 4 | 07-24-2006 11:15 AM |