replyreturn "<table>"; Why is this paragraph written like this? ? It's not echo "</table>"; I don't understand what it means? What role does it play?
replyI suggest you figure it out on your own. This is the simplest code logic in PHP, and if you can do it when you first learn it, it will be of great help and encouragement to you.
That’s it
<?php
echo '<table>';
function demo($color1,$color="pink",$cor=10,$row=10){
for($x=0;$x<$row;$x++){
if($x%2==0){
echo "<tr bgcolor='$color'>";
}else{
echo"<tr bgcolor='$color1'>";
}
for($y=0;$y<$cor;$y++){
echo "<td>".($x.$y)."</td>";
}
echo "<tr>" ;
}
return "<table>";
}
$demo=demo('red');
echo $demo;
?>
Can you complete this homework?
Thank you
This course is not difficult. PHP functions have this fixed grammatical structure, just remember it
Just help me complete the required homework at the bottom
I don’t know how to do it
I am a newbie
Thank you! ! !
Please be specific with your question, otherwise I won’t be able to help you!