answersLogoWhite

0

echo function();

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

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 ?>


Is function always return a value?

no, every function can not return a value. for example void name() { cout<<"Hello world"; } this function does not return any value due to the key word void that tells the compiler that the function does not returns a value.


What part of a function definition specifies the data type of the value that the function returns?

The function header. The return value is written before the name of the function. This return type must match the type of the value returned in a return statement.


What statement returns a value from a function?

return


What statement do you need to include in a value-returning function?

In a value-returning function, you need to include a "return" statement to specify the value that the function should return back to the caller.


Can you call a function inside an echo statement in PHP?

Of course it is possible to call a PHP-function inside an echo statement. The function will be executed and returns a value. This value then is used in the echo statement. For example: echo "Ferengi-Rule #1: ", ferengi_rule(1), "\n"; echo "Random: ", ferengi_rule(0), "\n"; function ferengi_rule($number) { $rules = array( 1 => "Once you have their money, never give it back.", 2 => "You can't cheat an honest customer, but it never hurts to try.", 3 => "Never buy anything for more than is absolutely necessary.", 4 => "Sex and profit are the two things that never last long enough." // ... ); if( isset($rules[$number]) ) { return $rules[$number]; } else { return array_rand($rules); } }


What is the difference between echo and print and printf in PHP?

The print function is slightly more dynamic than the echo function by returning a value, and the echo function is slightly (very slightly) faster. The printf function inserts dynamic variables/whatever into wherever you want with special delimiters, such as %s, or %d. For example, printf('There is a difference between %s and %s', 'good', 'evil') would return 'There is a difference between good and evil'.


What is a return statement used for?

It means end the function. Functions automatically end when execution reaches the end of the function, but you can return from a function at any point within the function with a return statement. If the function returns a value to its caller, you must provide a reachable return statement along with the value you wish to return.


Where do you use no argument no return in c function?

Where there is no need to return any type of value from a function


Can you use printf as a return value?

No, it is a function. But printf does return a value: the number of characters it has written.


What is return in programming?

The return statement is used in functions to return control to the caller. If the function is declared non-void, the return statement also allows the programmer to return a value to the caller.


What number will the function return if the value of 24?

It depends on the function in question.