php recursion question

This project received 15 bids from talented freelancers with an average bid price of $7 USD / hour.

Get free quotes for a project like this
Project Budget
Total Bids
Project Description

I want to write a PHP function that performs multiplication WITHOUT using a loop or the * operator. It should use repeated addition with recursion.

Where have i gone wrong?

this project is to tell me if this is correct?


function phpMult($a,$b){


c = a + b;

echo " The sum of A and B is" <

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online