answersLogoWhite

0

they're called user-defined functions, this is the syntax:

function the_user_defined_name() { the code you want here }

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Basic Math
Related Questions

What is the way to create a function in PHP?

function function_name() { .................... }


How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


How do you create static variables in PHP?

Use the "static" keyword to declare a static variable within a function like shown below. <?php function fun() { static $variable; static $another_variable = ''; } ?>


What is the correct way to create a function in php?

function myFunction($parameter1, $parameter2) { // this function's code goes here return $returnValue; // the value returned }


How do you create a function in HTML?

You don't. You can only create it in Scripting languages like Javascript or Server Side languages like PHP.


How do you create main in php?

PHP is web based programming language and there in no main() function defined. Considering, PHP as HTML embedded language and server side scripting language,It get interpreted by web server .Example: Hello - End of PHP block


How do you install crystal reports for php?

how to create report in php


How does PHP function in applications?

in php used for one typ website


What is a PHP function?

Functions are basic blocks of code that work together. Functions can be used from the core PHP or can be created by users. To create a function, use the following syntax: function function_name(arg1, arg2, ... argX) { //Any valid php code here } To use a function, use the following syntax: function_name(arg1, arg2, ... argX);


How do you create a PHP class?

To create a PHP class it is pretty simple, I will show you how to create a very basic class in an example below. <?php // the class class myBasicClass { // a function to add 2 numbers together and return the result function add($num1, $num2) { $result = $num1 + $num2; return $result; } } // load up the class $myBasicClass = new myBasicClass; // output the result echo $myBasicClass->add(5, 10); // outputs the result 15 ?>


How do you use settime out in php?

we cant use set timeout function in php because it is of java script function


How do you return a value in a PHP function?

Below is a simple example of how you could return a value in a PHP function. <?php function returnme($value) { return $value; } echo returnme('hello'); // outputs: hello ?>