PHP Examples - Function


PHP Example - Function

Program:
<html >
<head>

<title>PHP Example 6 : FUNCTIONS</title>
</head>

<body>
<?php
 
 echo "<br/>PHP Example 6";
 echo"<br/>"; // line break
 echo"<h1>";
 echo"FUNCTIONS";
 echo"</h1>";
 echo"<br/>";
 
 function add($a,$b) //function for the addition
 {
  return $a+$b;
 }
 $x=20;
 $y=30;
 $z=add($x,$y);
 echo "<br/>Adding $x & $y   $z";
 
 echo "<br>Adding 10 & 20  ".add(10,20);
 
 echo "<br/><br/><br/><br/><b>";
 echo"WWW.2K8618.BLOGSPOT.COM";
 echo"</b>";

?>


</body>
</html>

13 comments:

  1. Thanks for the informative article. This is best resource I have found in quite some time. Nicely written and great info. I really thank you enough for sharing. keep posting like this...
    PHP Training Institutes
    Best Dot Net Training in Chennai
    Core Java Training in Chennai
    Best Software Testing Training Institute in Chennai

    ReplyDelete
  2. I'm 100% sure this blog will help those students who are belongs to the computer science and espcially those peoples who are programmer and coders. By the way, I'm also a computer programmer and when I stuck in an assignment so I got assistance from assignment makers in Pakistan who provided me the soltuion whatv exactly I'm looking for and I still thanks them for helping me in hard time.

    ReplyDelete
  3. Great blog I really want to thank you for sharing this with us security companies in manchester uk and i hope you will keep sharing these kinds of blog with us in the future.

    ReplyDelete
  4. The new report by Expert Market Research titled, ‘India Sodium Monochloro Acetate (SMCA) Market Report and Forecast 2021-2026’, gives an in-depth analysis of the India sodium monochloro acetate (SMCA) market, assessing the market based on its segments like grades, end uses, and major regions. The report tracks the latest trends in the industry and studies their impact on the overall market. It also assesses the market dynamics, covering the key demand and price indicators, along with analysing the market based on the SWOT and Porter’s Five Forces models.

    ReplyDelete
  5. Dragon Road, Hatfield, Hertfordshire, AL10 9LX
    Hello, thanks for sharing such pretty informing blogs
    Take online assignment help if you don't want to write your assignments or you really do not have any time. We at fullassignment.co.uk provides the best assignment help. We offer 100% plagiarism-free, on-time delivery. We have the best experts for you, can take help with your homework.

    ReplyDelete
  6. The post is really superb. It’s varied accessory information that consists during a basic and necessary method. Thanks for sharing this text. The substance is genuinely composed. Pass your Fortinet NSE 5 Network Security Analyst NSE5_FMG-6.4 Exam This web log is frequently sharing useful actualities. Keep sharing a lot of posts.

    ReplyDelete
  7. Mechanical Engineering assignment help
    Get complete Mechanical Engineering Assignment Help by experts. Australia, United Kingdom, Malaysia, Singapore, New zealand, United States of America, Canada, United Arab Emirates https://thetutorshelp.com/mechanical-engineering-assignment-help.php
    Mechanical Engineering assignment help

    ReplyDelete
  8. Software Engineering Assignment Help
    online software engineering Assignment help or history and science of psychology assignment help.in Australia, United Kingdom, Malaysia, Singapore, New zealand, United States of America, Canada, United Arab Emirates Our software engineering https://thetutorshelp.com/software-engineering-assignment-help.php
    Software Engineering Assignment Help

    ReplyDelete
  9. Electrical Engineering Assignment Help
    Electrical engineering assignment help and Electrical Assignment Help by the best engineers for collge & universities students of UK, USA, Australia,UAE etc. Get best solution for electrical engineering homework help.https://thetutorshelp.com/electrical-engineering-assignment-help.php
    Electrical Engineering Assignment Help

    ReplyDelete
  10. Civil Engineering Assignment Help
    Best online civil engineering assignment help in Australia, United Kingdom from thetutorshelp.com at affordable price. Get 100% Plagiarism FREE, online civil engineering assignment solution https://thetutorshelp.com/civil-engineering-assignment-help.php
    Civil Engineering Assignment Help

    ReplyDelete
  11. Our assignment help is written as per the needs and requirements of the students. Top quality engineering assignments without any sort of errors submitted to the students which. Engineering assignment help in Australia, United Kingdom, Malaysia, Singapore, New zealand, United States of America, Canada, United Arab Emirates Online Assignment help, https://thetutorshelp.com/engineering-assignment-help.php
    Engineering Assignment Help

    ReplyDelete
  12. I found this blog post on PHP functions quite informative and helpful. The examples provided are clear and easy to understand, making it a great resource for anyone learning PHP. Additionally, if you're looking for assistance with online assessments, I highly recommend checking out the Online Assessment Help service from Do My Assignment. They offer reliable support to ensure your success.

    ReplyDelete
  13. The pricing structure is reasonable, considering the quality of service provided by History Assignment Help. It's a cost-effective solution for students seeking help with history assignments.
    history assignment help

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...