The logic of your code is correct, but the use of in the display takes up two ** characters, so it does not look like a pyramid. This may be related to the software problem you are debugging.
After inserting the codeecho " "; 改写成 echo " ";, test it in each browser to display the entire pyramid. Thank you teachers for your guidance, thank you very much!
Mine is the whole thing. What did you test it on?
The logic of your code is correct, but the use of in the display takes up two ** characters, so it does not look like a pyramid. This may be related to the software problem you are debugging.
After inserting the code
echo " "; 改写成 echo " ";
, test it in each browser to display the entire pyramid.Thank you teachers for your guidance, thank you very much!