sudhakarinfotech
(current)
Run Code
PHP Code Editor-
PHP Source Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP Function</title> </head> <body> <h1>PHP Function</h1> <?php function fruits($name, $city, $cost) { echo "$name is selling inside $city at the rate of $cost"; } fruits('mango', 'salempur', 200); fruits('orange', 'salempur', 50); ?> </body> </html>
Source Code Output