Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php functions parameters

// functions require 'function' keyword
// separate the parameters with a comma
function addFunction($num1, $num2) {
	$sum = $num1 + $num2;
	echo "Sum of the two numbers is : $sum";
}

addFunction(1, 2); // echoes: Sum of the two numbers is : 3
Comment

function with parament php

function in php
  
Comment

PREVIOUS NEXT
Code Example
Php :: serialise php 
Php :: calculate 1 day interest 
Php :: logout php code 
Php :: unless blade laravel 
Php :: crrate model in laravel 
Php :: select query into left join doctrine 
Php :: php forech pdo 
Php :: generate parentheses 
Php :: switch php version ubuntu 
Java :: android.support.design.widget.coordinatorlayout androidx 
Java :: java every second 
Java :: java swing make window not resizable 
Java :: import android.support.v4.app.ActivityCompat; 
Java :: how to create a button with javascri[t 
Java :: find maven version 
Java :: java age from date 
Java :: WRITE_EXTERNAL_STORAGE no longer provides write access when targeting Android 10+ 
Java :: base64 decode java 
Java :: filll 2d array in java 
Java :: spigot run task later 
Java :: How can I put a parameter into a localized string in Android? 
Java :: @SpringBootApplication 
Java :: SpEL define default 
Java :: get epoch time in java 
Java :: resultset get value 
Java :: how to load font in java 
Java :: java file reader utf 8 
Java :: how to print elements in matrix java 
Java :: how to detenct free the end achievement spigot 
Java :: spring execute code after variable injected 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =