prabakaran - 2008-08-12 09:46:36
Hi,
I have query in XIRR Function.
How do I pass values from database into an array?
Example is with static data passed into array as shown below, pls let me know how can one do the same by passing data from database.
Static:
echo 'XIRR: ' . $f->XIRR(array(-10000,2750,4250,3250,2750), array(
mktime(0,0,0,1,1,2008),
mktime(0,0,0,3,1,2008),
mktime(0,0,0,10,30,2008),
mktime(0,0,0,2,15,2009),
mktime(0,0,0,4,1,2009),
), 0.1) . "\n";