Why can't the second one be executed? ? ?
不是铭跃
不是铭跃 2017-06-07 15:48:12
0
2
1464

<?php


$n = 2;


##function dg( $n ){


## echo $n.'<br />';


$n = $n - 1;

## if($n > 0){

//Call dg itself in the function body

dg($n );

}else{

## echo '------------- -';


}

## echo 'I'm a bitch, I haven't executed it yet' . $n . '<br />';


}

?>

不是铭跃
不是铭跃

reply all(2)
益伦

<?php

$n = 2;

function dg( $n ){

echo $n.'<br />';

$n = $n - 1;

if($n > 0){

//Called dg itself in the function body

dg($n);

}else{

echo '--------------';

}

echo 'I'm a bitch, I haven't executed it yet' . $n . '<br />';

}

dg($n);

?>


There is no function called, just add dg($n); after it


phpcn_u3204

You didn’t call the function

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template