Jump to content

smgy94

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by smgy94

  1. <!DOCTYPE html> <html> <body> <?php function sum($x, $y) { $z = $x + $y; return $z; } echo sum(11,11) . "<br>"; ?> </body> </html> is this correct ? thanks so much for helping
  2. <html> <p> <?php print rand(1,100); ?> </html> I'm a complete beginner, all I could figure out was how to create random numbers appear on screen, not adding two arguments
  3. I need to create a PHP programme that will allow me to Write a simple function that will take two numbers as augments and display their sum on screen. I'm brand new to php and stumped about how to do this simple task, can somebody give me the code to make this possible ?? i'd be SO grateful !
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.