| 
			
			 
			
				04-29-2009, 03:52 PM
			
			
			
		 | 
	| 
		
			| the Professional. |  |  |  
			| 
					Join Date: Sep 2003 Location: Zormite 
						Posts: 964
					      |  | | 
	Quote: 
	
		| 
					Originally Posted by Chompy  You'd have to join that class to use it's content. 
Lets say this is a class called fibonacci:
 
	PHP Code: 
		
			
function fib(n) {
return (((1+5^0.5)/2)^n - ((1-5^0.5)/2)^n)/(5^0.5)
 }
 
 
To use that function, I would have to do:
 
	PHP Code: 
		
			
function onCreated() {
join("fibonacci");
 
 echo(fib(7)); // 13
 }
 
 |  Ok, thanks. | 
 | 
				__________________*Don't let the door hit you on the way out.*
 | 
 | 
|  |