Is this Fibonacci function right? Is this a correct method of Fibonacci with recursion?

function fibb($limit,$first_numer=0,$second_number=1){
        echo $first_numer."\n";
        echo $second_number."\n";
        if($limit &gt; 0){
            fibb($limit-2,$first_numer+$second_number,($first_numer+$second_number+$second_number));
        }
}
In a sense, your function does produce the right numbers.  However, the termination condition is not quite right.  For example, fibb(3) and fibb(4) produce identical output: each prints six numbers.  Why six?  The most natural interpretation of the parameters would be that $limit should specify the number of items in the sequence to be printed.

The root of the problem is that each call to fibb() prints two lines, which means that output will always be printed in pairs.  Normally, you would want to print just one number per call.

In addition, your naming is unconventional.  Why fibb() with two bs?  Also, $first_numer is misspelled.

function fibonacci($limit, $first_number=0, $second_number=1) {
    if ($limit &lt;= 0) {
        return;
    }
    echo "$first_number\n";
    fibonacci($limit - 1, $second_number, $first_number + $second_number);
}